Brian Dunning's FileMaker Custom Functions

GeneratePassword ( Len ; Letters ; Numbers ; Symbols )

Password generator

  Average rating: 4.5 (11 votes) Log in to vote

flusheDData   flusheDData - Show more from this author
n/a
http://www.udias.com

Share on Facebook Share on Twitter

  Sample input:
GeneratePassword ( 20 ; 3 ; 0 ; 0 )
GeneratePassword ( 20 ; 3 ; 1 ; 0 )
GeneratePassword ( 20 ; 3 ; 1 ; 1 )
  Sample output:
bAMPXEcgTnWjMxLnmYAo
029v2541868760834M00
&9BR%$T6#5P230#Vw$1~

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

A tail recursive function that creates random passwords up to 49999 characters long. It can be set to include letters, numbers and symbols.
Comments to flusheddata@gmail.com

 

Comments

suresh   suresh
Jun 20, 2019
I have used this function in my existing database. I have used like this "GeneratePassword ( 8 ; 3 ; 1 ; 1 )" in my script, sometimes it will not include the symbols.
 
flusheDData   flusheDData, n/a
Mar 18, 2020
Hi, my apologyze for the delayed answer. Yep, sometimes that may happen when the password length is too short.
Looking forward to modifying the formula.
Kind regards,
Miguel
 
Jeff Dressing   Jeff Dressing
Mar 18, 2021
Has this been updated to handle shorter passwords?
I have used GeneratePassword ( 8 ; 3 ; 1 ; 1 ) and sometimes it misses numbers and sometimes it misses special characters.
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: