An open API service indexing awesome lists of open source software.

https://github.com/dislick/pwgen

CLI Password Generator
https://github.com/dislick/pwgen

Last synced: about 1 year ago
JSON representation

CLI Password Generator

Awesome Lists containing this project

README

          

# @dislick/pwgen

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

## Usage

```
pwgen 0.1.0
Patrick Muff
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 Amount of passwords
-l, --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~