A simple command line script that generates XKCD-style multiword passwords/passphrases. Licensed under the BSD license.
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=WORDFILEList of valid words for password -
--min=MIN_LENGTHMinimum length of words to make password -
--max=MAX_LENGTHMaximum length of words to make password -
-n NUMWORDS, --numwords=NUMWORDSNumber of words to make password -
-i, --interactiveInteractively select a password -
-v VALID_CHARS, --valid_chars=VALID_CHARSValid chars, using regexp style (e.g. '[a-z]') -
-V, --verboseReport various metrics for given options -
-a ACROSTIC, --acrostic=ACROSTICConstrain word choices to those starting with the letters in a given word -
-c COUNT, --count=COUNTNumber of passwords to generate