Browse the docs

password

A random password.

Details #

password(length?, symbols?) makes a random password from the Mac's secure random source: 20 characters by default, with lower case, upper case, digits and symbols (one of each at least, when the length is 4 or more). With symbols false it is letters and digits only, and leaves out the look-alikes 0 O o 1 l I i, so it can be read aloud or copied by eye.

Parameters #

Takes 0 to 2 arguments. {{ password(text?, b?) }}

Examples #

password()
→ Fkapqy:CQUc9#7FdWk26
password(12, false)
→ kGwJ8cxAUbtD

Gotchas #

  • Length is 1 to 1024.

  • Passwords are not saved anywhere: put the result in a variable or on the clipboard to keep it.