passphrase
is a command-line tool for generating strong
Diceware passphrases using
EFF's long wordlist.
In short, passphrases are generated by "throwing" five dice, joining the numbers into one, then looking up the word with the corresponding number in the wordlist, and repeating this process until N words (six, by default) are found. See more information about the technique here.
Instead of generating strings consisting of random numbers, letters, and
symbols, passphrase
produces passphrases such as whinny daffodil aerobics upheld bankable niece
which are easier to memorize while still extremely hard
to guess by brute force.
Under the hood, passphrase
uses
rio
as a prelude replacement and
Cryptonite for generating random
numbers.
- Build the project:
stack build
. - Generate a passphrase:
stack exec -- passphrase [WORDLIST] [-n LENGTH]
.
To run the test suite, run stack test
.
See LICENSE.