A simple passphrase generator inspired by this article from EFF, that lets you specify which one of these three wordlist to use:
- long corresponding to EFF's Long Wordlist, for use with five dice
- shortest corresponding to EFF's Short Wordlist #1, featuring only short words, for use with four dice
- short corresponding to EFF's Short Wordlist #2, for use with four dice, featuring longer words that may be more memorable.
Some examples of a generated passphrases with different wordlist:
- aroma algorithm attach concrete freeway endpoint
- chop bust fang shush drown cone
- imaging vagrancy cesspool oncoming silicon excerpt
Usage:
passphrase_generator [OPTIONS]
Passphrase generator that uses a word list and dices.
optional arguments:
-h,--help show this help message and exit
-v,--verbose Be verbose
-w,--wordlist WORDLIST
Word list to use (one of [long, short, shortest]), default is long
-n,--length LENGTH Length of the passphrase, default is 6
Using Cargo
cargo build --release
This will generate the passphrase_generator
executable inside the folder target/release/
It is also possible to directly run the program from cargo using the command cargo run --release
, although any command line arguments must be passed after a --
.
Some examples:
cargo run --release
generates a passphrase using the default optionscargo run --release -- -n 8
generates a passphrase of length 8cargo run --release -- -w short -n 10
generates a passphrase of length 10 using the shorter wordlist