| Crates.io | pwgen-rs |
| lib.rs | pwgen-rs |
| version | 0.1.0 |
| created_at | 2025-11-06 19:40:57.225073+00 |
| updated_at | 2025-11-06 19:40:57.225073+00 |
| description | A Rust implementation of pwgen password generator |
| homepage | |
| repository | https://github.com/Karag0/pwgen-rs |
| max_upload_size | |
| id | 1920215 |
| size | 66,055 |
A Rust implementation of the classic pwgen password generator with no external dependencies.
Generates cryptographically secure and memorable passwords using /dev/urandom as the entropy source.
/dev/urandom for true randomnessGet the latest binary from Releases:
chmod +x pwgen-rs
./pwgen-rs --help
cargo install pwgen-rs
git clone https://github.com/Karag0/pwgen-rs
cd pwgen-rs
cargo build --release
The binary will be available at target/release/pwgen-rs.
# Generate 5 passwords of 12 characters
./pwgen-rs 12 5
# Generate secure random passwords
./pwgen-rs -s 16 3
# Generate passwords without numbers
./pwgen-rs -0 10 5
# Generate passwords with symbols
./pwgen-rs -y 12 3
# Generate passwords without vowels (avoid offensive words)
./pwgen-rs -v 8 5
-s, --secure - Generate completely random passwords-0, --no-numerals - Don't include numbers-A, --no-capitalize - Don't include capital letters-y, --symbols - Include at least one special symbol-v, --no-vowels - Avoid vowels to prevent accidental words-B, --ambiguous - Don't include ambiguous characters (like 0/O, 1/l)-1 - Print passwords in a single columnGPL-3.0 License - see LICENSE file for details.
Note: This is a Rust rewrite of the original pwgen utility, maintaining full compatibility
while providing a modern, secure implementation.