Lesson7 min

Dice-generated phrases

Dice can supply the entropy for a phrase. The number of rolls has to cover the bits, and a biased conversion quietly weakens them.

A wallet’s phrase is only as random as the entropy it started from. Hardware wallets and reviewed software collect that entropy on the device. Some people want a source they can see. Fair dice are a reasonable source. A homemade converter on an online computer is a good way to throw the benefit away.

How many rolls

Each face of a fair six-sided die has log base 2 of 6 bits of entropy, about 2.585 bits, if the roll is honest and you keep the whole outcome. A 12-word phrase needs 128 bits. Fifty rolls clear that number by a small margin, and only if every bit is extracted without bias. A 24-word phrase needs 256 bits. Ninety-nine rolls of a six-sided die are a widely used conservative count for that length, because 99 times log base 2 of 6 is just about 256. Round numbers you invented, such as ten rolls because the card has ten lines, are not in this conversation.

The checksum does not repair a short roll. It adds a few check bits after the entropy is chosen. If you rolled too little, the phrase is valid and weak.

Bias

Mapping die faces onto bits by a sloppy remainder, or by rerolling some faces and keeping others without a published rule, can spend rolls without adding entropy. The failure is invisible. The phrase still passes the checksum. The space an attacker has to search is smaller than the one you think you generated.

Casino dice, a flat surface, and rolls you did not nudge are the physical half. The conversion is the other half. The safe place to do the conversion is the dice-entry feature of a hardware wallet, or another tool that is widely reviewed and that you can run offline. This site will not print a roll-by-roll recipe. A recipe that is almost right is a weak wallet with a confident owner.

What not to mix in

Do not photograph the rolls. Do not type them into a website that offers to “calculate your phrase,” including any future form on this domain. Do not “add some words you like” after the dice. Human additions are the low-entropy part, and they are the part an attacker will guess. If you also use a passphrase, it is a separate secret, generated and stored on purpose, not a word you append because the dice felt unfinished.

Generate, write the words down from the device screen, test a restore, and only then decide the phrase is real. Dice do not change that order. They change only the source of the random bits.