pass-word
created by Austin Poor
A small CLI, written in Go, to generate xkcd-style passwords using words from popular Project Gutenberg books.
Usage
To run the CLI, run pass-words
from the command line.
CLI Help
$ pass-words -h
Usage of pass-words:
-nwords int
Number of words to randomly generate. (Must be > 0) (default 3)
-sep string
Character used toseparate random words. (default ".")
-vocab
Print out the vocabulary and then quit.
-vocab-size
Show the size of the vocabulary and quit.
Default Usage
$ pass-words
gravel.blackrock.erect
Running Multiple Times
$ for i in {1..5}; do pass-words; done
coffinships.raided.roles
invented.supplementary.jacks
doors.beautified.mans
pert.anchored.seagreen
witless.turf.morituri
Specifying Number of Words & Separator
$ pass-words -nwords 5 -sep -
distaff-simpsons-ankers-shoots-readily
Another Fun Example
$ for i in {1..5}; do pass-words -nwords $i; done
fitted
superadd.heartwoes
rowy.satins.ily
mallarm.paling.wordy.gently
poetic.bellyful.dispelled.berchmans.ponder
How It's Made
Currently, the books used in creating the vocab are:
The vocab file is generated by placing any text files you want to process in the books directory and then running the file process-books.py.