בס״ד

Passphrase Generator

A Diceware passphrase is a sequence of words chosen at random from a numbered wordlist, one word per set of dice rolls. DNSX draws from the EFF short wordlist: 1,296 words, four dice rolls each, 10.34 bits of entropy per word. That puts a five-word passphrase at about 51 bits and a seven-word passphrase at about 72.

4
3 words8 words

Easy to Remember

Words are easier for humans to remember than random character strings.

Still Secure

4+ random words provide similar entropy to a 16+ character random password.

Diceware Method

Based on the proven Diceware passphrase generation method for high security.

Command Line

$ curl https://dnsx.dev/passphrase
$ curl "https://dnsx.dev/passphrase?words=6"
$ curl "https://dnsx.dev/passphrase?words=5&separator=_&capitalize=false"

What is a Diceware passphrase?

Arnold Reinhold published the method in 1995. Its value is that you can calculate the strength rather than estimate it. Each word is picked independently and uniformly at random, so the entropy is exactly the word count multiplied by log₂ of the wordlist size, and that figure holds even against an attacker who knows the wordlist and the method. It makes no difference whether the result looks memorable or happens to read like a sentence.

Selection here uses Go's crypto/rand, which reads from the operating system CSPRNG, giving the same uniformity as physical dice.

What is the EFF wordlist, and how big is it?

The Electronic Frontier Foundation published three Diceware wordlists in 2016, curated to remove words that are hard to spell, easy to confuse when spoken, or offensive. Two are in general use:

  • EFF short wordlist: 1,296 words (6⁴), four dice rolls per word, 10.34 bits per word. Every word is at most five letters and each is uniquely identified by its first three characters, so it is fast to type and autocomplete-friendly. This is the list DNSX uses.
  • EFF long wordlist: 7,776 words (6⁵), five dice rolls per word, 12.93 bits per word. Higher entropy per word, at the cost of longer and less familiar words. DNSX does not use this one.

Which list you use changes the arithmetic, not the method. A short-list passphrase needs roughly one extra word every four words to match a long-list passphrase of the same entropy: seven short-list words (72.4 bits) sit between five and six long-list words (64.6 and 77.6 bits).

How many words should a passphrase be?

Choose the word count by the entropy you need, using the list you are actually drawing from. The figures below are for the EFF short wordlist used by this generator, with the equivalent long-list count shown alongside.

Words (EFF short)EntropyEquivalent random passwordSuitable for
441.4 bits~6 ASCII charsNot sufficient on its own
551.7 bits~8 ASCII charsLow-value accounts behind rate limiting
662.0 bits~9 ASCII charsOrdinary online accounts
772.4 bits~11 ASCII charsFinancial accounts
882.7 bits~13 ASCII charsPassword-manager master password
10103.4 bits~16 ASCII charsFull-disk encryption, long-term keys

Arnold Reinhold raised his own recommended minimum to six words in 2014. That figure is for the 7,776-word Diceware long list, so the equivalent on the short list used here is eight words. Eight words gives 82.7 bits, comfortably past the ~80-bit threshold for offline cracking resistance, and it is the right default for anything you are protecting seriously.

Capitalising a word or inserting a separator adds almost nothing: an attacker assumes the convention, so a fixed capital is worth a fraction of a bit. Adding one more word adds a full 10.34.

How do I generate a Diceware passphrase with physical dice?

Download the EFF short wordlist. For each word, roll a single die four times (or four dice at once, reading them left to right) and write the four digits down in order, so 3, 1, 6, 2 gives the index 3162. Look that four-digit number up in the list and record the word. Repeat until you have the number of words you decided on, then join them with spaces.

Two rules matter. Never reroll or discard a word because you dislike it, since that makes the selection non-uniform and quietly destroys the entropy calculation. And never substitute mental “random” numbers for dice. Humans are measurably poor at generating uniform randomness, which is why the method uses dice at all.

Are passphrases actually stronger than passwords?

Memorability

Passphrases use real words that form mental images, making them far easier to remember than random character strings of equivalent security.

Typing Ease

Words are natural to type on any keyboard layout. No hunting for special characters or switching between cases repeatedly.

Entropy per Word

Each word from the 1,296-word EFF short wordlist contributes 10.34 bits of entropy. Five words provide 51.7 bits, eight words provide 82.7 bits. Entropy scales linearly with word count and does not depend on how memorable the result looks.

Ideal Use Cases

Passphrases are ideal for master passwords, full-disk encryption, and any scenario where you need to type the password from memory regularly.

Frequently Asked Questions

What is a passphrase?
A passphrase is a sequence of randomly chosen words used as a password. Instead of a random string like "xK#9mP!2qL", a passphrase looks like "Correct-Horse-Battery-Staple". Passphrases are significantly easier to remember while providing comparable or better security than shorter random passwords, because their length compensates for the smaller character set.
Are passphrases more secure than passwords?
Passphrases are stronger than passwords only when you compare the two at equal entropy. Character for character a passphrase is weaker, because each word comes from a 1,296-word list rather than a 94-character alphabet. What you gain is memorability. A 5-word passphrase from the 1,296-word EFF short wordlist used here carries 51.7 bits, about the same as a random 8-character ASCII password, and 8 words carries 82.7 bits, about the same as a random 13-character password. People can memorise a passphrase and type it accurately, so they are less likely to weaken it to cope.
What is the Diceware method?
Diceware is a method for generating passphrases by selecting words at random from a numbered wordlist. Arnold Reinhold's original 1995 list has 7,776 entries and uses five dice rolls per word. This generator uses the EFF short wordlist of 1,296 words, which uses four rolls per word and gives 10.34 bits of entropy per word. Selection uses a cryptographically secure random number generator (crypto/rand) rather than physical dice, with the same uniformity.
How many words should I use?
On the EFF short wordlist used here, each word adds 10.34 bits (log2 of 1,296). Six words gives 62.0 bits, enough for ordinary online accounts. Eight words gives 82.7 bits, which clears the ~80-bit threshold for offline cracking resistance and is the right default for a password-manager master password or disk encryption. Ten words gives 103.4 bits. If you are following the classic "six words" advice, note that it refers to the 7,776-word Diceware long list. The equivalent on the 1,296-word EFF short wordlist is eight words.

Related Tools