This is a simplistic passphrase generator inspired by xkcd and hsxkpasswd.
It uses the ChaCha20Rng rng for safe random numbers and the bitcoin mnemonic word list in english from bip-0039.
If you want to build rust-passphrase
by yourself you need rustc
and cargo
installed.
Clone into the repository
git clone [email protected]:nepet/rust-passphrase.git
cd rust-passphrase
and build the program with cargo:
cargo build --release
You can then move the program built in target/release
to the bin
files or add the path to the PATH
environmental variable.
Alternatively this repo comes with a shell.nix
file for the usage with nix-shell
. This allowes for automatic installation of the required build tools.
command: rust-passphrase generate [OPTIONS]
long | short | description |
---|---|---|
--num-words | -n | number of words used for passphrase (default: 3) |
--separator | -s | space separated list of separators to choose from (default: "-") |
--num-trailing-numbers | -n | number of trailing numbers appended to the passphrase (default: 0) |
--num-passphrases | -p | number of passphrases to generate (default: 3) |
- Allow for own wordlists.
- Add
rust-passphrase inspect [OPTIONS]
command to return insight on entropy and estimated time to crack. - Add transformations (capitalizing modes, 1337 mode)
- Add padding symbols.
- Allow for config files.