β
diceware
Rust crate and CLI for generating strong Diceware passphrases.
CLI usage
As of now you can install it globally via cargo (assuming you have cargo and rustc installed):
cargo install --git https://github.com/norskeld/diceware
Just invoke diceware --help
. It's really simple.
diceware 0.1.1
Generates strong Diceware passphrases.
USAGE:
diceware [OPTIONS]
OPTIONS:
-l, --length <LENGTH> How much words you want to generate [default: 6]
-w, --wordlist <WORDLIST> Path to a custom wordlist
-e, --entropy Show entropy of the passphrase
-h, --help Print help information
-V, --version Print version information
Crate usage
You can use this crate as a git dependency:
[dependencies]
diceware = { git = "https://github.com/norskeld/diceware" }
Notes
By default CLI uses the EFF long wordlist, which is a little bit better than the one original one.
Diceware
In short, passphrases are generated by "throwing" a dice five times, joining the numbers into one, and then looking up for the word with the corresponding number in the wordlist. This process repeats N times (default is 6) until all words are found. You can find more information about that technique on the official Diceware page or on the Diceware FAQ page.
Todo
- Tests.
- Homebrew formula for installing binary.
License
MIT.