entrop is a password generator (command line tool), that converts a sequence of words with some separator into a password in some charset, using some good algorithms:
- https://en.wikipedia.org/wiki/PBKDF2 ("-a pbs5" or "-a pbs2")
- https://en.wikipedia.org/wiki/Argon2 ("-a ar")
- and some others (see alg.go)
Usage of entrop:
-a string
algorithm with optional params: e.g. ar:3:32768 or rh:62500 (default "pbs5")
-c string
charset name or spec, see charsets.go (default "alnum")
-d uint
alg settings ('defaults') version
-i inline mode, i.e. no hidden inputs
-jcw
join words using counting mapper
-l uint
password length (default 25)
-nq
no quality check/retry, same as -q 0
-q uint
required num. of character categories for passwd. quality (default 3)
-s string
separator (default " ")
-v verbose mode
-version
print version
In inline mode (-i), separator can be specified with -s option, and words must be specified after flags:
entrop -i -l 15 -s "+++" hello world 12345
# separator=+++; words=hello,world,12345
In a default non-inline mode, separator and words will be asked in hidden inputs (as in read -s
).
Inline mode is not recommended, it is insecure. Use inline mode only if you can disable commands history in your shell.
entrop is also available for usage online (for that puprose it was compiled to wasm):