Skip to content

sergik776/pgdr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Password Generator with entropy by linux cernel (/dev/random)

PGDR - Password Generator by /dev/random

Features

  • Dual entropy sources/dev/urandom (fast) or /dev/random (strict)
  • Flexible charset control — letters, numbers, symbols
  • Lightning fast — 215ms for 10M characters

Install

By AUR

yay -S pgdr

By Cargo

cargo install --git ssh://git@github.com/sergik776/pgdr.git
pgdr -U -L -S -N

If 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
EOF

If .cargo/bin is not added to the $HOME variable:

echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

By download git repo

git clone git@github.com:sergik776/pgdr.git
cd pgdr
cargo run -- -U -L -S -N

Fast start

Default params:
entropy source - /dev/urandom
password length - 16

pgdr -L -U -S -N     

Options

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

Security Modes

Default: /dev/urandom → Fast, production-ready, never breaks
-R flag: /dev/random  → Strict, breaks on low entropy, paranoid mode

Security Guarantees

  • True kernel entropy (hardware RNG + interrupts)
  • Production proven (SSH, GPG, OpenSSL)
  • Break protection for /dev/random

License

License: MIT
See LICENSE file for details.

About

Cryptographically secure password generator powered by kernel entropy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages