This crate generate a random password via command line.
- Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Clone this repository
git clone https://github.com/aldenpower/passwdgen
- Enter in the repository folder and build the project
cargo build --release
- Copy the binary to your system
cp target/release/passwdgen /usr/bin/
- Run the binary and enjoy!
passwdgen
Type the command for help
passwdgen -h
Options:
OPTIONS:
-c, --lowercaseletters <lcl> Contain lower case letters [default: false]
-h, --help Print help information
-k, --spaces <spaces> Contain spaces [default: false]
-n, --numbers <numbers> Contain numbers [default: false]
-o, --symbol <symbol> Contain symbols [default: false]
-s, --size <size> Password length [default: 5]
-t, --similar <similar> Contain similar characters [default: false]
-u, --uppercaseletters <ucl> Contain upper case letters [default: false]
-V, --version Print version information
Example:
A ten-digit password containing symbols, numbers, lower case and upper case letters without repeated characters.
passwdgen -s 10 -o -n -c -u