Skip to content

A simplistic passphrase generator in rust. Inspired by hsxkpasswd

License

Notifications You must be signed in to change notification settings

nepet/rust-passphrase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-passphrase

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.

Install

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.

nix-shell

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.

How to use

command: rust-passphrase generate [OPTIONS]

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)

Todo

  • 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.

About

A simplistic passphrase generator in rust. Inspired by hsxkpasswd

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published