Skip to content
Password Generator Lab

Diceware: make a passphrase with real dice

How to roll a Diceware passphrase with five dice and the EFF wordlist, how many words you need, how to avoid bias, and when a generator does the same job.

· 7 min read

Key takeaways

  • Diceware, published by Arnold Reinhold in 1995, picks each passphrase word by rolling five six-sided dice and looking the number up in a 7,776-word list (6^5 = 7,776).
  • Each word from the EFF large wordlist adds log2(7,776) ≈ 12.925 bits, so six words give about 77.5 bits and seven give about 90.5 bits.
  • Ordinary dice are random enough if you shake them properly; re-rolling words you dislike shrinks the effective list and makes the result more predictable.
  • The EFF short lists use four dice and 1,296 words (≈ 10.34 bits per word), so you need eight short words to beat six large-list words.
  • Our memorable password generator uses the same EFF large wordlist with Web Crypto and rejection sampling, so it gives the same entropy instantly.

Last reviewed

Diceware is a way to make a passphrase with ordinary six-sided dice and a numbered list of words. Arnold G. Reinhold published it on Usenet in 1995, and it is still one of the clearest ways to see where a passphrase's strength comes from. Every word comes from a roll of the dice, so nothing in the result depends on your own choices.

Why five dice give 7,776 words

Five dice, read in order, give a five-digit number with each digit from 1 to 6. There are 6 × 6 × 6 × 6 × 6 = 65 = 7,776 possible numbers. A Diceware wordlist has exactly one word for each of them, so a single roll picks one word out of 7,776, and every word is equally likely.

Reinhold's original list is 7,776 words long. In 2016 the EFF published a large wordlist of the same size, built for the same dice method. Its words are longer and more familiar, and it leaves out profanity, words that are hard to spell, and words that sound like other words. Because both lists have 7,776 entries, each word adds the same strength: log2(7,776) ≈ 12.925 bits of entropy.

Step by step: a passphrase with real dice

  1. Get the EFF large wordlist. Print it or open the text file linked from the EFF dice page. Every line is a five-digit dice number followed by a word, from 11111 abacus to 66666 zoom.
  2. Roll five dice. You can roll five dice at once or one die five times. If you roll them together, decide on a reading order first (for example, left to right) and keep to it. Write the digits down before you look anything up.
  3. Look up the word. If you roll 4, 3, 1, 5, 2, find 43152 on the list. The word there is overdraft.
  4. Repeat until you have as many words as you need (see the table below). A six-word run might give 43152 overdraft, 25364 enjoyer, 61423 swarm, 35216 joylessly, 52641 sandbank and 16655 contusion.
  5. Keep the words in the order you rolled them and join them with spaces or hyphens: overdraft-enjoyer-swarm-joylessly-sandbank-contusion. Don't actually use this example, since it is now published.
  6. Make it memorable. Picture a scene that links the words, then type the passphrase a few times over the next few days. When you know it, destroy the paper you rolled on.

Why dice work, and how to keep them fair

Dice are a physical source of randomness that you can watch. You don't have to trust any software, and you can check every step yourself. That is why Reinhold recommends physical dice over a program or electronic dice. For this job they don't need to be perfect:

  • Ordinary dice are fine. Reinhold calls casino-grade dice "overkill" for this purpose. Cheap dice with drilled pips can be slightly uneven, but the effect is small. Suppose one face came up 18% of the time instead of 16.7%. That would cost about 0.005 bits per word on average. Even an attacker who always guesses the most likely rolls first would gain only about half a bit per word.
  • Roll properly. Shake the dice in a cup or box and let them land freely, instead of placing or gently dropping them. Reinhold suggests a box with "at least ten hard shakes" if you roll often. A practiced hand can partly control a short, soft roll.
  • Record every roll. If a die lands cocked or falls off the table, re-roll it because the result was unclear. Never re-roll because you didn't like the number.

Don't re-roll words you dislike

The entropy figures depend on every word being equally likely. Say you rejected about half the words because they seemed ugly or hard to spell. In effect you'd be choosing from about 3,888 words, which is 11.925 bits per word instead of 12.925. That loses a full bit per word, or six bits over six words, and makes the search about 64 times smaller. The bigger problem is that word preferences are predictable. People tend to reject the same long or unusual words, so an attacker can try the "likeable" words first.

Reinhold's page does suggest starting over in two rare cases. One is a passphrase shorter than 19 characters including spaces, which matters mainly with his original list of short words. The other is a result that forms a recognizable phrase. In both cases you throw away the whole passphrase and roll a new one, and so few outcomes are rejected that almost no strength is lost. That is very different from swapping out individual words until the passphrase "feels right".

The same applies to an online generator. Regenerating once or twice before you settle costs almost nothing. Regenerating dozens of times until the words suit you is the same as rejecting words you dislike, and it makes your passphrase more predictable in the same way.

How many words to use

Each word from a 7,776-word list multiplies the possibilities by 7,776 and adds log2(7,776) ≈ 12.925 bits. The EFF and Reinhold both recommend at least six words. Reinhold suggests seven to nine for high-value uses.

WordsPossible passphrasesEntropySuitable for
4≈ 3.66 × 101551.7 bitsToo weak for most uses on its own
5≈ 2.84 × 101964.6 bitsLow-value accounts behind rate limiting
6≈ 2.21 × 102377.5 bitsRecommended minimum; most accounts
7≈ 1.72 × 102790.5 bitsPassword manager master password
8≈ 1.34 × 1031103.4 bitsDisk or file encryption
9≈ 1.04 × 1035116.3 bitsLong-lived encryption keys
10≈ 8.08 × 1038129.2 bitsMore than most threat models need

These numbers assume the attacker knows you used Diceware, which list you used and how many words you rolled. The strength comes from the dice, not from keeping the method secret. You can try other combinations in the entropy calculator.

EFF short lists vs the large list

The EFF also publishes two short wordlists of 1,296 words (64). You roll four dice per word instead of five. Their words are no longer than five letters. The second short list also gives every word a unique three-letter prefix and keeps words at least three edits apart, so typos are easier to spot.

  • Large list: 5 dice per word, log2(7,776) ≈ 12.925 bits per word. Six words ≈ 77.5 bits.
  • Short lists: 4 dice per word, log2(1,296) ≈ 10.34 bits per word. You need eight words (≈ 82.7 bits) to beat six large-list words.

The two kinds of list are equally secure per bit. A short-list passphrase needs more words but fewer letters. Never mix lists within one passphrase, and always count the bits for the list you actually used.

Common mistakes

  • Choosing words yourself. A phrase you make up, even from words on the list, is not a Diceware passphrase. People choose predictably. Only the dice should choose.
  • Editing the words. Swapping letters for look-alike symbols, misspelling words or reordering them adds very little strength and makes the passphrase harder to remember. Reinhold advises using the passphrase exactly as generated. If you want more strength, roll another word.
  • Reusing it. A passphrase that leaks from one site can be tried everywhere. Roll a separate one for each secret you have to remember. Keep the rest in a password manager.
  • Rolling too few words because the passphrase looks long. Length in letters doesn't matter here. Only the number of randomly chosen words counts.
  • Leaving the worksheet around. The paper with your rolls is the passphrase. Destroy it once you've memorized the words.

Dice or the online generator?

Our passphrase generator does the same thing as rolling dice, only faster. It picks each word independently from the same 7,776-word EFF large list. The randomness comes from your browser's cryptographically secure generator (crypto.getRandomValues()), and rejection sampling makes sure every word is exactly equally likely. You can choose 4 to 10 words (default 6) and a hyphen, space, period or underscore separator. The entropy is the same as with dice: 6 words ≈ 77.5 bits.

The optional extras change the numbers predictably. Capitalizing each word adds no entropy because it is a fixed rule. An appended random digit adds log2(10) ≈ 3.3 bits. An appended symbol from a set of 12 adds log2(12) ≈ 3.6 bits. Everything runs on your device and nothing is sent anywhere.

Choose dice if you want to see the randomness yourself and not trust any software, including your browser. That makes sense for a master password or an encryption key you will use for years. For everything else, the generator is the same math in a fraction of a second. If you're still deciding between words and characters, read password vs passphrase.

Sources

Keep reading