Skip to content
joshfngPublic

About

Diceware passphrase generator — EFF long wordlist, /dev/urandom rejection sampling, pinned list hash

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

diceware

Generate Diceware passphrases from the EFF long wordlist (7776 words, 12.925 bits/word) with provable entropy.

  • Indices drawn from /dev/urandom with rejection sampling — uniform, no modulo bias, no $RANDOM
  • Wordlist fetched once over HTTPS and verified against a pinned SHA-256 (corroborated against a 2016 archive.org capture and independent mirrors)
  • Manual mode (-d) for rolling physical dice
  • Clipboard mode (-c, macOS) auto-clears after 45 seconds

Usage

$ diceware
hash-spring-unwired-divisive-dinghy-graveyard-smugness
7 words, 90.5 bits of entropy.
diceware [-n COUNT] [-s SEP] [-c] [-d]

  -n COUNT   number of words (default 7, max 24)
  -s SEP     separator between words (default "-")
  -c         copy to clipboard instead of printing; auto-clears after 45s
  -d         manual mode: enter physical dice rolls yourself

Entropy: 6 words = 77 bits, 7 = 90 bits, 8 = 103 bits.

Install

Drop the script somewhere on your PATH:

curl -fsSLO https://raw.githubusercontent.com/joshfng/diceware/main/diceware
install -m 0755 diceware ~/bin/

Requires bash 3.2+, curl, and shasum or sha256sum. Clipboard mode is macOS-only.

License

MIT

About

Diceware passphrase generator — EFF long wordlist, /dev/urandom rejection sampling, pinned list hash

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages