95

Mnemonic password generator · GitHub

 6 years ago
source link: https://gist.github.com/markasoftware/1c5b52c0537a5a055ac8e61a85f9573e
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Mnemonic password generator · GitHub

Instantly share code, notes, and snippets.

Created January 19, 2018 04:20
Mnemonic password generator

Should be cryptographically secure, uses /dev/urandom as a source of entropy (and so does sort -R as well as shuf, by default). I'm not sure if entropy estimation is 100% correct. As a rule of thumb, I'd want at least 64 bits of entropy for most things, and at least 128 if you're paranoid or securing something that can be brute forced very efficiently. Needs a dictionary wordlist to be installed, I think most distros come with one? Not sure about mac.

Example output:

$ mnemonic.sh 5
Estimated entropy: 75 bits (37538 candidate words)
breaking avenues hombres forbears eviler 
$ mnemonic.sh 15
Estimated entropy: 227 bits (37538 candidate words)
crabbing nachos midlands viaduct ethics seasides lacks rares snagging sandbank boxiest electron gloats raises clewing 
$ mnemonic.sh 5 15 20
Estimated entropy: 50 bits (1085 candidate words)
interdenominational acknowledgments contextualization obstructionists maladministration

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK