A key bit of 1 flips the message bit; 0 leaves it alone. Flip twice and you are back where you started, so the same key locks and unlocks.
Try this
Sheet 2 · Any message you likeBurn after use
InterceptKeySays
The interceptNo. 0418
A spy's message, caught on its way, mixed with a one-time pad. What does it say?
Every key is as likely as any other, so every message this long fits the intercept equally well: it gives away its length, nothing else. If the pad is truly random, as long as the message, secret and used once.
The same on a paper pad
Spies' pads were pages of random digits. Letters become numbers (A = 01 … Z = 26, space = 00) and each digit is added to the pad's without carrying (7 + 5 = 2). Your first ten letters:
Sheet 3 · One pad, two messagesWorksheet
Every place for your crib (dark = reads like English)
Crib draggingNo. 0419
Two intercepts, same pad
Cipher 1 ⊕ cipher 2 = message 1 ⊕ message 2: the pad has gone. Guess a bit of one message and the other shows through.
Sheet 4 · A key that repeatsWorksheet
Cipher text (bytes shown as characters, · = not printable)
Step 1: how alike the columns are, for each key length
Step 2: for each column, the key byte that reads most like English (click one to try its next best)
Step 3: the cipher text XORed with that key
CodebreakerNo. 0420
Cipher text
Key found
?
Reading the chart
Pick two characters at random from English text and they match about 7 or 8 times in 100 (two spaces, two e's…); from random bytes, less than once in 100. Cut the cipher text into rows as long as the key and every column was mixed with the same key byte, which only renames its letters, so the columns keep English's score. Wrong lengths mix key bytes and the score drops. Twice the length scores high too, because the key repeats inside it.