Skip to content

dislick/pwgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@dislick/pwgen

CLI password generator with smart defaults and a built-in copy-to-clipboard feature.

Usage

pwgen 0.1.0
Patrick Muff <[email protected]>
Generates random passwords

USAGE:
    pwgen [FLAGS] [OPTIONS] [SUBCOMMAND]

FLAGS:
    -a, --alphabet              Use ALPHABET (a-z) charset
    -A, --alphabet-uppercase    Use ALPHABET_UPPERCASE (A-Z) charset
    -n, --numbers               Use NUMBERS (0-9) charset
    -s, --special               Use SPECIAL (*, %, -, ...) charset
    -h, --help                  Prints help information
    -V, --version               Prints version information

OPTIONS:
    -c, --count <COUNT>      Amount of passwords
    -l, --length <LENGTH>    Length of passwords

SUBCOMMANDS:
    help      Prints this message or the help of the given subcommand(s)
    secret    Creates secret with at least 256 bits of entropy
    wifi      Creates a wifi friendly password

Defaults

If you run pwgen without a --length option it will determine the length based on the available charsets to get to at least 256 bits of entropy. The less different characters that are available through those charsets, the longer the resulting password will get.

Without charset flags (-a, -A, -n, or -s) present, it uses all possible charsets.

Examples

pwgen

Length defaults to 40, because 91 distinct chars are available.

s7YRg_L!5,b10e9{R57842/5]/3@2Fc3y57i[3g\

pwgen -a

Length defaults to 55, because 26 distinct chars are available.

cqkptjdawtbzmcdojiqwtcabvkragecntdctxwvwhtwbhgxdnfshvyj

pwgen -A

Length defaults to 55, because 26 distinct chars are available

GZWHIQEZMWJSAPPIULBYHIRMGJHYFKERLDYTABWFIKICTCJACTGIWEZ

pwgen -Aa

Length defaults to 45, because 52 distinct chars are available.

qvaPlUtPsYpTDTYOPwBbFclwYNDjLUqdrAhRRLdQoyEZu

pwgen -n

Length defaults to 78, because 10 distinct chars are available.

292040492503533901251005568137604050532386930398662181203682665536587940100830

pwgen -s

Length defaults to 53, because 29 distinct chars are available.

)}:!([_[^<&;@>}>-~;=({@[\@>,[,~<\=?.=,*]#_(};.?;<~@^[

pwgen -l 20

Length is hard-set to 20.

C4Y0iN77K*4^SzFeG{HY

pwgen -l 20 -c 5

X!Lv2|^;Z]Y[436Ven.F
)({]+)30O*5mDi1UZl|l
0`;OqE|r3~<v@=N8P5r}
pQ6UmkIu3_7p#T_ZSDUa
kucJ%~45g69Zan7-,Y7Q

Sub commands

pwgen secret

Lp47SqOH6BJYg59HDvYTP1zo1BpKa0hN51U6Rlrcb6n

pwgen wifi

3ehu-u4z2-jy09-107k

About

CLI Password Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages