Skip to content

andrewlkho/pwgen-xkcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

This is a passphrase generator which generates passphrase based on an algorithm inspired by xkcd #936.

Requires python ≥ 3.6.

Usage

usage: pwgen.py [-h] [-c C] [-w W] [-e] file

Passphrase generator à la xkcd (https://www.xkcd.com/936/)

positional arguments:
  file        path to wordlist

optional arguments:
  -h, --help  show this help message and exit
  -c C        passphrase length in characters
  -w W        passphrase length in words
  -e          print password to STDERR in addition to STDOUT

If both -c and -w are specified, -w is used. If neither are supplied then a 32
character long passphrase (i.e. -c 32) is created.

I use it with the EFF wordlist. The -e argument is useful for doing pwgen.py eff_large_wordlist.txt | pbcopy.

Password Strength

About

"correct horse battery staple" in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages