Commandline Diceware (Wayback Machine mirror), with or without dice, written in rustlang.
Please use Gitlab for anything whatsoever. Github is just a mirror.
Inspired by the great passphrase generating solution Diceware (Wayback Machine mirror) invented by Arnold G. Reinhold (Wayback Machine mirror) and by Randall Monroe’s xkcd#936:
Usage: diceware [options]
Options:
-h, --help This help message.
-e, --entropy Display number of entropy bits.
-r, --dicerolls Provide results of physical dice rolls. Word per line,
same digit order as in the files, digits between and
including 1 and 6.
-n, --nword NWORD Number of words in a passphrase.
-d, --delimiter DELIM
The delimiter character used to separate the words.
-f, --wordlist-file FILE
Path to a wordlist file.
-l, --wordlist WORDLIST
Wordlist to use. (efflong (default), effshort1,
effshort2, minilock, reinhold, or beale)
-
The three wordlists mentioned in EFF's Diceware Guide:
-
The original Reinhold wordlist (Wayback Machine mirror).
-
The MiniLock (github)wordlist. (found in the phrase.js file)
-
The all new
--wordlist-file
command line option which loads and uses your very own newline delimited wordlist file. Inquire within! -
Physical dice roll! You can (don't use echo, it will show up in
ps
and show your rolls to other users):$ cat | diceware -l efflong -r 111111 111112 ^D abacus abdomen
-
Wordlists live in their own diceware_wordlists crate you can use for your own wicked deeds.
You can say hello and/or rant about how terrible rusty-diceware is in the #rusty-diceware:matrix.org chat room.
If you want to tip for this work, I have set up a Liberapay account:
<script src="https://liberapay.com/yuvallanger/widgets/button.js"></script>