OS X Keychain Password Assistant function via terminal

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

I want to access this function through bash. My particular interest is to request the generation of a password with my required attributes of length and complexity, and then adding this password element to a specific keychain.

The OS X Security CLI application solves the second part, but not the initial part of password generation.

Human security has not indicated anything about the password assistant function.

+3
source share
2 answers

, APG? , , MacPorts Fink.

+4

, Apple , , , , Password GUI.

. ( 2014 ): https://bitbucket.org/anders/sf-pwgen https://github.com/anders/pwgen

@anders-bergh ( Xcode) , (https://bitbucket.org/anders/sf-pwgen/downloads).

brew: brew install sf-pwgen.

:

sf-pwgen CLI, :

usage: ./sf-pwgen [options]

Option:          Meaning:
  -a, --algorithm  Available algorithms: memorable, random
                   letters, alphanumeric, numbers.
  -c, --count      The number of passwords to generate.
                   The default is `memorable'.
  -l, --length     Desired length of the generated passwords.
  -L, --language   Generate passwords in a specified language.
                   Languages: en, de, es, fr, it, nl, pt, jp.
                   Note that this feature is broken and will
                   produce garbage, bug: rdar://14889281
  -v, --version    Print the version number and exit.
  -h, --help       Prints this message.
+3

Source: https://habr.com/ru/post/1709543/


All Articles