Skip to content

Dice Pad

You'll make a one-time pad from dice rolls, use it with a friend for a week without ever reusing a line, and destroy the pages as you go.

About

The one-time pad is the only cipher that is unbreakable in principle. It was worked out in 1917, ran the Moscow to Washington hotline, and went into the field as tiny printed booklets in spies' pockets. The method is simple: add a truly random key letter to each plain letter and never use that key again. The rules are what people break. The key has to be really random, so no mashing a keyboard and no favorite books; it has to be as long as all your messages put together; and it must never be reused, because two messages under the same key page subtract to give each other away, which is how the Venona project read Soviet cables for years.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
6
Takes
A weekend, then a week of messages
Skill level
Beginner (done it a few times)
Cost
Cheap (under $10)
Supplies
You need some
Where
At home
Other people
With other people
Locked for now
Earn two more Common badges in Codes & Ciphers to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Generate at least 300 random key letters with dice and write them in five-letter groups. Roll two dice of different colors, read them as a two-digit number from 11 to 66, map the first 26 outcomes in order to A through Z, and roll again for anything higher. It takes about an hour and it is boring, which is the point. Nothing else you can do by hand is truly random. Take a photo of the dice and the key sheet. Photo
  2. 2
    Make the second copy with carbon paper and check every group against the first. Read one copy aloud while your friend follows the other, because one wrong key letter garbles one plain letter and a skipped group garbles everything after it. Number the pages and lines on both copies. Take a photo of the two pads side by side. Photo
  3. 3
    Encipher a message by adding key to plaintext on a Vigenere table, and have your friend subtract it. Write the plaintext over the next unused key line, read the ciphertext off the table, and mark exactly where you stopped on the key. Your friend reads along the key row to the ciphertext letter and takes the column heading. Take a photo of the worksheet with the used key line struck through. Photo
  4. 4
    Exchange at least five messages over a week without ever reusing a key line. Keep a log of which key lines each message used. If either of you loses your place, stop and agree a fresh starting line rather than guessing. Take a photo of the log and the pad with the used lines crossed out. Photo
  5. 5
    Show on paper what happens when one key line is used twice. Encipher two short plain messages under the same key line, then subtract one ciphertext from the other letter by letter and look at the result: the key has vanished and what is left is the difference between the two plaintexts, which a solver can pick apart with guessed words. Write a few lines on what this means for reuse. Take a photo of the worked example. Photo
  6. 6
    Destroy the used pages safely. Tear out the used lines and burn them a few at a time in a metal tin, outdoors or in a sink with the tap to hand, and stay with it until it is out, or shred them if you have a shredder. Keep the unused lines. Film the burn, or photograph the shredded remains with the rest of the pad intact. Photo or video