hur.st's bl.aagh

BSD, Ruby, Rust, Rambling

mkpass

Command-line password generation

[rust]

mkpass is a simple command-line random password generator written in Rust, with built-in dictionaries to keep run-time dependencies to an absolute minimum.

-% mkpass help
mkpass 0.1.0
Thomas Hurst <tom@hur.st>
Generate reasonably secure passwords

USAGE:
    mkpass [FLAGS] [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
    -v, --verbose    Activate verbose mode

OPTIONS:
    -b, --bits <bits>              Password strength target, 2^n [default: 72]
    -d, --dictionary <dict>        Built-in dictionary [default: eff]  [possible values: eff, diceware, beale, alpha,
                                   mixedalpha, mixedalphanumeric, alphanumeric, pin, hex, printable, koremutake]
    -l, --length <length>          Password length (overrides bits target)
    -n, --number <number>          Number of passwords to generate [default: 1]
    -s, --separator <separator>    Word separator
    -w, --wordlist <wordlist>      External dictionary

Example:

-% mkpass -v -n 5
# Complexity 7776^6=221073919720733357899776, 77.55 bits of entropy
removing spooky stucco banish debate snagged
gumball figurine hut antics shifting sultry
clumsily runaround affirm depose revise spendable
stooge heritage opposing sudden owl material
woven crowbar rascal morse exclusive tropical