- Dual entropy sources —
/dev/urandom(fast) or/dev/random(strict) - Flexible charset control — letters, numbers, symbols
- Lightning fast — 215ms for 10M characters
yay -S pgdrcargo install --git ssh://git@github.com/sergik776/pgdr.git
pgdr -U -L -S -NIf you got the error:
error: failed to clone into
failed to authenticate when downloading repository
The Quickest Fix: Use the Git CLI
As the error message suggested, you can tell Cargo to use your installed Git binary instead of its internal library. This will use your existing SSH configuration and ssh-agent automatically.
Run this command: Bash
mkdir -p ~/.cargo
cat >> ~/.cargo/config.toml << EOF
[net]
git-fetch-with-cli = true
EOFIf .cargo/bin is not added to the $HOME variable:
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcgit clone git@github.com:sergik776/pgdr.git
cd pgdr
cargo run -- -U -L -S -NDefault params:
entropy source - /dev/urandom
password length - 16
pgdr -L -U -S -N | Flag | Description |
|---|---|
-l <N> |
Password length [DEFAULT: 16] |
-L |
Lowercase a-z only |
-U |
Uppercase A-Z only |
-N |
Numbers 0-9 |
-S |
Symbols !@#$%^&*()_+-= |
-r |
Use /dev/random (breaks on low entropy) [DEFAULT: /dev/urandom] |
-b |
Buffer size [DEFAULT: 8 192] |
-h |
Show help |
-V |
Print version |
Default: /dev/urandom → Fast, production-ready, never breaks
-R flag: /dev/random → Strict, breaks on low entropy, paranoid mode
- True kernel entropy (hardware RNG + interrupts)
- Production proven (SSH, GPG, OpenSSL)
- Break protection for
/dev/random
See LICENSE file for details.