Where is "mkpasswd" for OSX? There is a well-known unix utility called mkpasswd available on many *nix systems.

I was just trying to use it from terminal on an OSX 10.10.5 Yosemite (Early 2015) machine, and it is nowhere to be found.

How can I install it on this machine? or is there an alternative already available?
There's a Mac implementation of mkpasswd on GitHub - https://github.com/PrototypeAlex/mkpasswd

Alternatively, Keychain Access has a built-in GUI password generator
File menu > New Password Item... > [click the key icon]

drop-menu artificially offset for visibility



I also found this Apple Discussion on how to achieve it natively, though it's unfortunately above my skill-level, so I'll let you see if you think it might be suitable.