Generate Diceware passphrases from the EFF long wordlist (7776 words, 12.925 bits/word) with provable entropy.
- Indices drawn from
/dev/urandomwith 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
$ 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.
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.