Skip to content
This repository has been archived by the owner on Sep 22, 2018. It is now read-only.

l0b0/xkcd-passphrase-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XKCD passphrase generator

Simply run ./generate.sh to generate a passphrase based on the XKCD method: Password Strength comic by Randall Munroe

By default this uses the 2,048 most popular words in the English language. To use the N (between 4 and 10,000) most popular words instead simply run ./generate.sh N. For example, ./generate.sh 10000 prints the strongest password this can generate.

The word list is based on another repository. Many thanks to Josh Kaufman, Peter Norvig and Google for contributing this. If anyone knows of a list of most popular contemporary English words which is definitely Creative Commons licensed or in the public domain, please let me know.

Using your own word list is easy - simply replace words.txt with your own file.

Adapting this to other languages would be easy. If you can provide a list of at least the 2,048 most popular words in a language (sorted by decreasing popularity) I can adapt this program for your language. Please file an issue and include a link to the word list.

Notes:

License

The code is licensed under the GNU Affero GPL v3+.

About

Generate a simple, secure passphrase with a single command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%