ArticleslgStudy

mathematics

Diceware

Diceware is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Diceware rather than just read about it. In short: Diceware is a method for creating passphrases, passwords, and other cryptographic variables using ordinary dice as a hardware random number generator. For each word in the passphrase, five rolls of a six-sided die are required.

Diceware — main illustration
Diceware — illustration

Key takeaways

  • Diceware belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Diceware to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Diceware from memory before moving on to harder problems.

Reference excerpt

Diceware is a method for creating passphrases, passwords, and other cryptographic variables using ordinary dice as a hardware random number generator. For each word in the passphrase, five rolls of a six-sided die are required. The numbers from 1 to 6 that come up in the rolls are assembled as a five-digit number, e.g. 43146. That number is then used to look up a word in a cryptographic word list. In the original Diceware list 43146 corresponds to munch. Thus, by generating several words in sequence, a lengthy passphrase can be constructed randomly. A Diceware word list is any list of 65 = 7776 unique words, preferably ones the user will find easy to spell and to remember. The contents of the word list do not have to be protected or concealed in any way, as the security of a Diceware passphrase is in the number of words selected, and the number of words each selected word could be taken from. Lists have been compiled for over two dozen languages. The level of unpredictability of a Diceware passphrase can be easily calculated: each word adds 12.9 bits of entropy to the passphrase (that is, log2(65) bits). Originally, in 1995, Diceware creator Arnold Reinhold considered five words (64.6 bits) the minimal length needed by average users. However, in 2014 Reinhold started recommending that at least six words (77.5 bits) be used. This level of unpredictability assumes that potential attackers know three things: that Diceware has been used to generate the passphrase, the particular word list used, and exactly how many words make up the passphrase. If the attacker has less information, the entropy can be greater than 12.9 bits/word. The above calculations of the Diceware algorithm's entropy assume that, as recommended by Diceware's author, each word is separated by a space (or any other non-letter character). If, instead, words are simply concatenated, the calculated entropy is slightly reduced due to redundancy; for example, the three-word Diceware phrases "in put clammy" and "input clam my" become identical if the spaces are removed.

EFF wordlists The Electronic Frontier Foundation published three alternative English diceware word lists in 2016, further emphasizing ease-of-memorization with a bias against obscure, abstract or otherwise problematic words; one tradeoff is that typical EFF-style passphrases require typing a larger number of characters.

Snippet The original diceware word list consists of a line for each of the 7,776 possible five-die combinations. One excerpt:

... 43136 mulct 43141 mule 43142 mull 43143 multi 43144 mum 43145 mummy 43146 munch 43151 mung ...

Examples Diceware wordlist passphrase examples:

dobbs bella bump flash begin ansi easel venom aver flung jon call EFF wordlist passphrase examples:

conjoined sterling securely chitchat spinout pelvis rice immorally worrisome shopping traverse recharger The XKCD #936 strip shows a password similar to a Diceware generated one, even if the used wordlist is shorter than the regular 7,776-words list used for Diceware.

See also Brute-force attack Hashcat Key size discusses how many bits of key are considered "secure". The PGP biometric word list uses two lists of 256 words, each word representing 8 bits. Password strength Random password generator S/KEY uses a list of 2,048 words to encode 64-bit numbers as six English words What3Words

Notes

References

Further reading Internet Secrets, 2nd Edition, John R. Levine, Editor, Chapter 37, IDG Books, 2000, ISBN 0-7645-3239-1

External links English diceware page has the complete description and word lists in several languages. A client-side diceware multi-wordlist password generator with complete source code Web-based diceware app that uses the cryptographically secure getRandomValues() function English Diceware wordlist from the Electronic Frontier Foundation diceware on GitHub

Illustrations

Diceware: Five dice showing 4-1-2-5-6, which denotes "monogram" on an updated EFF cryptographic word list
Five dice showing 4-1-2-5-6, which denotes "monogram" on an updated EFF cryptographic word list

Worked examples

Example 1 — a first encounter with Diceware

Start with the simplest possible case. Write down what Diceware claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Diceware before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Diceware ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Diceware

In research
Diceware appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Diceware in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Diceware is common in secondary-school and first-year university syllabi. It links to neighbouring topics Dice, Password authentication, Random number generation, so understanding it makes those chapters shorter.
In everyday life
Look for Diceware outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Diceware” →

How to study Diceware in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Diceware means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Diceware out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Diceware in simple terms?

Diceware is a method for creating passphrases, passwords, and other cryptographic variables using ordinary dice as a hardware random number generator. For each word in the passphrase, five rolls of a six-sided die are required.

Why does Diceware matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Diceware?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Diceware.

Tags

  • Dice
  • Password authentication
  • Random number generation

Keep exploring