This guide walks you and one trusted partner through making a real one-time pad with ordinary dice, handing it over, and using it to encrypt and decrypt short messages by hand. Making the pad takes an evening; each message takes a few minutes. No app, account or computer is involved.
Why bother
Almost every cipher you use daily is safe because breaking it would take too much computing power. The one-time pad is different. In 1949 Claude Shannon proved that if the key is truly random, as long as the message, kept secret and never reused, the ciphertext tells an attacker nothing about the message, no matter how much computing power they have, quantum computers included. The price is that every rule must be followed exactly. The Soviet Union learned this when duplicated pad pages let US analysts, over the following decades, read part of their 1940s traffic. Doing it once yourself shows you exactly what "perfect secrecy" costs, and gives you a channel for short, high-value notes that does not depend on any software being safe.
Before you start
- Time: about an hour of dice rolling for every 500 key letters, plus time to write the second copy and check it. Encrypting a 50-letter message takes 5 to 10 minutes.
- You need: two ordinary six-sided dice of different colours (say red and white), a cup to roll them in, plain paper, a pen, a hard surface such as a clipboard, and a way to destroy paper (a metal bin and matches, or a cross-cut shredder).
- You need a partner you can meet in person at least once. The pad cannot be safely sent over the internet; that is the whole catch.
- Versions checked: no software or device is needed. The method was checked against the sources at the end of this guide on 2026-10-04.
Steps
1 Agree the rules in person
Sit down with your partner and agree, on paper you will later destroy:
- Alphabet: only the 26 letters A to Z. Drop spaces and punctuation, write numbers as words (
TWOnot2). - Letter numbers: A=0, B=1 ... Z=25 (the full list is in Step 6).
- Two pads, one per direction. Pad A is only for messages from you to your partner, pad B only for messages back. That way you can never both use the same page by accident.
- Page numbering: every key page gets a pad letter and number, like
A-01,A-02. Each message starts with the page ID it used. - Fixed length: every message is exactly 50 letters (or another number you pick), so length does not give anything away.
- End marker: the message ends with the fixed group
XQXQ, and the rest is filler.XQXQdoes not occur in normal English, so the reader can stop at the first one. If your text itself would end inXQ, rephrase the last word so the marker cannot start early. - Long messages: one page holds 46 message letters plus the marker. If yours is longer, shorten it, or split it across consecutive unused page IDs (
A-03,A-04). Fill each part with message letters, putXQXQonly in the last part, encrypt each part only with its own page, and destroy every page after use.
You can agree these rules at the same meeting where you swap pads in Step 4. You should now have one short rules sheet that both of you understand.
2 Roll the key with dice
Work on a single loose sheet on a hard surface, not on a notepad, so the pen does not leave readable dents in the sheets underneath.
Shake both dice in the cup and roll. Read the red die first, then the white die, and look up the letter:
Red 1: White 1-6 = A B C D E F
Red 2: White 1-6 = G H I J K L
Red 3: White 1-6 = M N O P Q R
Red 4: White 1-6 = S T U V W X
Red 5: White 1 = Y, White 2 = Z, White 3-6 = roll again
Red 6: any white = roll again
Each of the 36 possible rolls is equally likely, and exactly one roll gives each letter, so every letter has the same chance. The rerolls are what keep it fair; do not skip them or remap them to letters.
Write the letters in groups of five, five groups per line, which is 25 letters per line and 50 letters per two lines. Write the page ID at the top. For a 50-letter message you need exactly 50 key letters per page, one per message letter; a longer message split under rule 7 uses one whole page per 50-letter part.
You should now have pages like A-01, each full of five-letter groups from the dice.