Skip to content

A simple cli password generator

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Antidote1911/passgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License License made-with-rust CI

🔑 Passgen

A simple cli password generator.

Usage examples

With no argument Passgen generate a password with 12 chars. It use uppercase letters, lowercase letters and digits:

./passgen
POvzXaq3CDoj

Generate a password with 30 chars with upper,lower,digits and symbols:

./passgen -ulds -L 30
K~n&n&ilbafGqtra&^v&Tal2ttnxD7

Generate 3 passwords with 15 chars with upper and digits and save in txt file:

./passgen -ud -c 3 -L 15 --output mypasswords.txt
8DC2HM510IJ9LXO
68AUQ7YN6V8JYJG
NZGBEHVCJ6MPDWW
File 'mypasswords.txt' is saved.

Display full help with -h flag:

./passgen -h

passgen 0.4.0
Antidote1911 <antidote1911@gmail.com>
🔑 Random password generator

USAGE:
    passgen [OPTIONS]

OPTIONS:
    -u, --uppercase           Use UPPERCASE letters [A-Z]
    -l, --lowercase           Use lowercase letters [a-z]
    -d, --digits              Use digits [0-9]
    -s, --symbols             Use special symbols [*&^%$#@!~]
    -o, --others              Use other symbols [♕♖♗♘♙♚...]
    -L, --length <NUMBER>     Sets the required password length [default: 12]
    -E, --entropy <NUMBER>    Sets the minimum required password entropy (conflicts with --length)
    -c, --count <NUMBER>      Number of passwords [default: 1]
    -i, --info                Prints password information
        --output <OUTPUT>     Output in a txt file
        --config              Sets config to default values
    -h, --help                Print help information
    -V, --version             Print version information

If you do not specify any of the [--uppercase, --lowercase, --digits, --symbols, --others] flags,
then uppercase, lowercase letters and digits will be used.

Build Passgen

Clone this repo, go in passgen folder and build it with cargo :

git clone https://github.com/Antidote1911/passgen
cd passgen
cargo build --release

About

A simple cli password generator

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published