views:

737

answers:

1

OS X's Keychain has a Password Assistant feature that suggest passwords based on user criteria (e.g. Length = 18 and FIPS-181 compliant).

I want to access this feature via bash. My specific interest is requesting generation of a password with my desired length and complexity attributes, then adding that password item to a specific keychain.

The OS X security CLI app solves the second part, but not the initial password generation part.

man security didn't list anything regarding the Password Assistant feature.

+1  A: 

Could you not use a different password generator such as APG? That appears to do everything you want, and is available on MacPorts and Fink.

Singletoned