Skip to content

Generate secure multiword passwords/passphrases, inspired by XKCD

Notifications You must be signed in to change notification settings

sorrat/correcthorse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple command line script that generates XKCD-style multiword passwords/passphrases. Inspired by https://xkcd.com/936/

XKCD password strength

For more memorable words, try 2of12.txt or 3esl.txt (both included here for convenience), available from https://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

  • -d DELIMITER, --delimiter=DELIMITER separator character between words

Licensed under the BSD license.

About

Generate secure multiword passwords/passphrases, inspired by XKCD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.6%
  • Shell 1.4%