Cryptographic password generator for the command line.
~ > genpass 32
aaWXrQLSB0K1xmmV7JoQJ3Qz9HbwMEno- Download the script:
curl -O https://raw.githubusercontent.com/imtoopunkforyou/password-generator/refs/heads/main/password-generator.sh- Make executable:
chmod +x password-generator.sh- Basic generation (12 characters with default charset):
./password-generator.sh --length 12- Custom character set (ASCII letters and numbers):
./password-generator.sh --length 16 --charset "a-zA-Z0-9"Add to your shell configuration (.bashrc/.zshrc):
alias genpass="/path/to/password-generator.sh --length"Usage with alias:
genpass 8 # Generates 8-character passwordgenpass 8 --charset "A-Za-z" # Letters only| Option | Description | Required |
|---|---|---|
| -l, --length | Password length (4-64) | Yes |
| -c, --charset | Custom tr-compatible pattern | No |
| -h, --help | Show usage information | No |