A minimal, fast CLI password generator written in Rust. Generated passwords are automatically copied to the clipboard.
| Argument |
Default |
Description |
LENGTH |
32 |
Length of the generated password |
| Flag |
Description |
-e, --exclude-special |
Use only alphanumeric characters (no special characters) |
-n, --no-copy |
Print the password without copying to clipboard |
-h, --help |
Print help |
# Generate a 32-character password (default)
pswd
# Generate a 16-character password
pswd 16
# Generate a 64-character password without special characters
pswd 64 --exclude-special
# Generate a password without copying to clipboard
pswd --no-copy
| Mode |
Characters |
| Default |
A-Z, a-z, 0-9, !@#$%^&*()_+-=[]{}|;:,.<>? |
--exclude-special |
A-Z, a-z, 0-9 |
git clone https://github.com/masiama/pswd
cd pswd
cargo install --path .
MIT