passgen is a hardened command-line utility for generating secure passwords
in infrastructure, sysadmin, and automation environments.
It focuses on practicality, speed, and system-level reliability.
- Offline password generation (no telemetry, no network calls)
- Fully self-contained Linux x86_64 static binary
- Customizable output: letters, digits, symbols
- Generate one or multiple passwords at once
- Output to terminal or file
- Optional secure file deletion
This is a fully open-source project.
All code is available under src/
You can build it with:
cd src
makeGet the latest binary from Releases:
wget https://github.com/SilentPuck/passgen/releases/download/v1.1/passgen
chmod +x passgen./passgen -n 20 -l -d -s -c 3Generates 3 passwords of 20 characters, using letters, digits, and symbols.
-n <number> Password length (min: 8)
-c <number> Number of passwords to generate (default: 1)
-l Use letters (a-z, A-Z)
-d Use digits (0-9)
-s Use special characters (!@#$...)
-o <filename> Save passwords to file
--auto-name Auto-generate file name
--remove Securely delete file
--silent Do not print to terminal
--version Show version info
--help Show help
- CI validates binary execution on every commit
- Built and tested with:
-fsanitize=address-fsanitize=undefinedvalgrind --leak-check=full
See the Wiki for:
- Real-world sysadmin usage
- Password scripting examples
- File handling and secure deletion
- Project goals and philosophy
Support development via the Wiki → Donate
🛠️ Built with clarity and intent by SilentPuck
"Forged in silence. Written in C. Tools for invisible people."