Skip to content

A small tool which aims for easily generating passwords and passphrases

License

Notifications You must be signed in to change notification settings

KuramaSyu/secret-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

secret

A project to easily generate passwords or passphrases. The goal was to have a better alternative to openssl rand -hex 32 or worse linux equivalents.

How does it work?

A tool to generate secrets. By default it uses numbers, lower case letters and upper case letters (-naA)

Usage: secret [OPTIONS] [LENGTH]

Arguments:
  [LENGTH]
          

Options:
  -n, --numbers
          Wether to use numbers

  -v, --verbose
          Wether to be verbose

  -a, --lower-letters
          Wether to use lower case letters

  -A, --upper-letters
          Wether to use upper case letters

  -s, --symbols
          Wether to use symbols

  -w, --words
          Wether to use words instead of characters

  -l, --language <LANGUAGE>
          [default: ger]

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Password examples

Without anything

./secret
qraxmsQGLBcRvUTcHEdT

Length of 20

./secret 20
iia2Glay6tmvT556hYXd

Only numbers

./secret 10 -n
6613472999

Only letters upper and lower case

./secret 10 -aA
RpNPkfRKLF

Length of 42 with numbers (-n), symbols (-s) and upper (-A) and lower (-a) case letters

./secret 42 -naAs
O__$=$vvI+xat-q*S+q%r=6gg++Ibm6HpoL@UWhk@x

Passphrase examples

Passphares work the same, but -w | --word as option is needed

Without anything

./secret -w
neunzehn-Wolkenlos-Holzhammer-Quelle-Ritzel

2 words

./secret 2 -w
Süße-Benzin

Why the hell are they german?

./secret 2 -w --language eng
strawberry-date

because german is default

With leetspeak

./secret 2 -wn --language eng
4ppl3-n3ct4r1n3

With leetspeak and uppercase letters

./secret 10 -wAn -l eng
R4spB3rRY-Eggpl4nt-nutm3G-kumqu4T-h0n3yd3w-v4N1ll4-x4NthAN-4ppl3-vIn3g4r-w4tErm3l0N

About

A small tool which aims for easily generating passwords and passphrases

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages