Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OS X Keychain's Password Assistant feature via Terminal

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.

like image 787
Matt Andersen Avatar asked Jan 24 '23 13:01

Matt Andersen


1 Answers

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.

like image 161
Singletoned Avatar answered Jan 26 '23 06:01

Singletoned