Skip to content

About

Generate passwords with high entropy

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

56 Commits

Folders and files

Repository files navigation

A simple command line script that generates XKCD-style multiword passwords/passphrases. Licensed under the BSD license.

See http://xkcd.com/936/

For more memorable words, try 2of12.txt or 3esl.txt (both included here for convenience), available from http://wordlist.sourceforge.net/

A simple example of how the script may be used via import is also provided.

Requirements: Python 2.4+ (Python 3 compatible)

Usage: xkcd-password.py [options]

  • -w WORDFILE, --wordfile=WORDFILE List of valid words for password

  • --min=MIN_LENGTH Minimum length of words to make password

  • --max=MAX_LENGTH Maximum length of words to make password

  • -n NUMWORDS, --numwords=NUMWORDS Number of words to make password

  • -i, --interactive Interactively select a password

  • -v VALID_CHARS, --valid_chars=VALID_CHARS Valid chars, using regexp style (e.g. '[a-z]')

  • -V, --verbose Report various metrics for given options

  • -a ACROSTIC, --acrostic=ACROSTIC Constrain word choices to those starting with the letters in a given word

  • -c COUNT, --count=COUNT Number of passwords to generate

About

Generate passwords with high entropy

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages