בס״ד

Passphrase Generator

A Diceware passphrase is a sequence of words chosen at random from a numbered wordlist, one word per set of dice rolls. Our passphrase generator 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 52 bits and an eight-word passphrase at about 83.

4
3 words8 words

Easy to Remember

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

Still Secure

Each word adds 10.34 bits. Eight words carry 82.7 bits, about the same as a random 13-character password.

Diceware Method

Words are drawn uniformly from the 1,296-word EFF short wordlist by advanced cryptographic random generation, so the entropy is exactly the word count times 10.34.

Command Line

$ curl https://api.dnsx.dev/tools/passphrase
$ curl "https://api.dnsx.dev/tools/passphrase?words=6"
$ curl "https://api.dnsx.dev/tools/passphrase?words=5&separator=_&capitalize=false"
$ curl "https://api.dnsx.dev/tools/passphrase?words=6&format=raw"
$ curl "https://api.dnsx.dev/tools/passphrase/batch?count=10&words=5"

What is a Diceware passphrase?

A Diceware passphrase is a password built from words picked at random from a numbered wordlist, originally by rolling dice. Arnold Reinhold published the method in 1995. Its value is that you can calculate the strength instead of estimating it. Each word is picked independently and uniformly, 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.

Our generator picks every word with advanced cryptographic random generation, so the selection is as uniform as physical dice.

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

The Electronic Frontier Foundation published three Diceware wordlists in 2016, edited 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, so it is fast to type. This is the list DNSX uses.
  • EFF long wordlist: 7,776 words (6⁵), five dice rolls per word, 12.93 bits per word. More entropy per word, at the cost of longer and less familiar words. DNSX does not use this one.

The list you use changes the arithmetic. 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 our generator uses. The password column is the length of a random password over the full 88-character set with the same entropy.

Words (EFF short)EntropyEquivalent random passwordSuitable for
441.4 bitsabout 6 charactersNot enough on its own
551.7 bitsabout 8 charactersLow-value accounts behind rate limiting
662.0 bitsabout 10 charactersOrdinary online accounts
772.4 bitsabout 11 charactersFinancial accounts
882.7 bitsabout 13 charactersPassword-manager master password
10103.4 bitsabout 16 charactersFull-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 give 82.7 bits, comfortably past the 80-bit threshold for resisting offline cracking, and it is the right default for anything you are protecting seriously.

Capitalising a word or inserting a separator adds almost nothing, because an attacker assumes the convention. A fixed capital is worth a fraction of a bit. 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, read left to right) and write the four digits down in order, so 3, 1, 6, 2 gives the index 3162. Look that 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 breaks the entropy calculation. And never substitute mental “random” numbers for dice. People are measurably poor at producing uniform randomness, which is why the method uses dice at all.

Are passphrases stronger than passwords?

Memorability

Real words form mental images, so a passphrase is far easier to remember than a random character string of the same strength.

Typing Ease

Words are natural to type on any keyboard layout, with no hunting for symbols or switching case.

Entropy per Word

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

Where to Use One

Passphrases suit master passwords, full-disk encryption, and anything you have to type from memory regularly.

Frequently Asked Questions

What is a passphrase?▼
A passphrase is a password made of several randomly chosen words instead of random characters. Where a random password looks like "xK#9mP!2qL", a passphrase looks like "correct-horse-battery-staple". Passphrases are much easier to remember and to type, and they reach the same strength as a random password by adding words rather than symbols.
Are passphrases more secure than passwords?▼
A passphrase is only stronger than a password when the two are compared at equal entropy. Character for character a passphrase is weaker, because each word comes from a 1,296-word list rather than an 88-character alphabet. What you gain is memorability. A 5-word passphrase from the EFF short wordlist DNSX uses carries 51.7 bits, about the same as a random 8-character password, and 8 words carry 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 picking words at random from a numbered wordlist. Arnold Reinhold published it in 1995 with a 7,776-word list that uses five dice rolls per word. DNSX uses the EFF short wordlist of 1,296 words, which corresponds to four dice rolls per word and gives 10.34 bits of entropy per word. Selection uses advanced cryptographic random generation in place of physical dice, with the same uniformity.
How many words should I use?▼
On the EFF short wordlist DNSX uses, each word adds 10.34 bits (log2 of 1,296). Six words give 62.0 bits, enough for ordinary online accounts. Eight words give 82.7 bits, which clears the 80-bit threshold for resisting offline cracking and is the right default for a password-manager master password or disk encryption. Ten words give 103.4 bits. The classic "six words" advice refers to the 7,776-word Diceware long list. The equivalent on the 1,296-word EFF short wordlist is eight words.

Related Tools