The Black Chamber RU

A mini-course on cryptography

The Black Chamber

How letters were hidden from Caesar to HTTPS — and how they were read anyway. Twelve lessons in plain words, live diagrams, puzzles with walkthroughs, a tool for every cipher and a quest of eight doors.

Twelve lessons

From ciphers a pencil can break to mathematics nobody breaks. Each lesson takes 15–25 minutes and has its own diagram and its own puzzle at the end.

  1. №01 1st century BC The Caesar cipher The most famous cipher in history, and the most defenceless one. How it works, and how to break it in a minute without the key. 15 min
  2. №02 9th century Substitution and frequency analysis Shuffle the alphabet any way you like and there are more keys than stars in the sky. Yet in the ninth century al-Kindi showed that the letters themselves give such a cipher away. Let's learn to break it by counting. 20 min
  3. №03 16th–19th century The Vigenère cipher The cipher people called unbreakable for three centuries. We take apart the Vigenère square, watch a key flatten the letter frequencies, and then break it the way Babbage and Kasiski did. 20 min
  4. №04 5th century BC Transposition: scytale, rail fence, columns You can leave every letter untouched and still make a message unreadable: just shuffle them. We wind a strip round a Spartan rod, write in a zigzag and reorder columns by a keyword. 18 min
  5. №05 1840s Morse code Two marks, a short one and a long one, and a rule for how long to stay silent between them. That was enough to wire up the world, call for help from a sinking ship and flash messages from bridge to bridge. 17 min
  6. №06 20th century Binary, hex and Base64 A computer knows no letters, only zeros and ones. Let’s see how text turns into bytes, what hex and Base64 are for, and why a string that looks like gibberish isn’t a cipher yet. 18 min
  7. №07 5th century BC to today Steganography A cipher hides what a letter says, but everyone can see there is a letter. Steganography hides the letter itself: under a messenger's hair, beneath wax, in the lowest bits of a photo, in a sound you can see. 20 min
  8. №08 1920–1945 The Enigma machine A cipher machine its makers believed could not be broken. We take it apart — rotors, reflector, plugboard — and find the tiny quirk that brought it down. 22 min
  9. №09 1917–1980 XOR and the one-time pad The only cipher that can’t be broken even in theory, and the story of how it was broken anyway, because someone saved on paper. 20 min
  10. №10 1979–2017 Hashes: fingerprints of data A function that turns anything into a short string and won’t let you go back. Passwords, downloads and signatures all rest on it. Here’s how it gets fooled, and how people defend it. 20 min
  11. №11 1976–1977 Public keys: Diffie–Hellman and RSA How do you agree on a secret with a stranger when someone is listening from the very first word? For three thousand years it seemed impossible. In 1976 it turned out it wasn’t. 25 min
  12. №12 1586 to today Famous ciphers A cipher that sent a queen to the scaffold. A telegram that pulled America into a war. A killer who taunted the police in code. A sculpture in the CIA's courtyard. A treasure that may never have existed. Five case files from the Black Chamber. 24 min

Quest

Eight Doors

A chain of ciphers: each answer is the password to the next door. Caesar’s note, a Morse radiogram, a word painted into sound, a password in a photo’s pixels, XOR and a safe locked with RSA. Everyone gets their own puzzles, solved the same way — fair for all.

Open the first door

nobody yet

  1. 1 Caesar
  2. 2 Morse
  3. 3 Vigenère
  4. 4 Encodings
  5. 5 Spectrogram
  6. 6 Steganography
  7. 7 XOR
  8. 8 RSA

The Chamber’s tools

Encode, decode, crack, listen, look. Everything runs in your browser: your texts go nowhere.

Classical ciphers

Analysis and cracking

Codes and encodings

Modern cryptography

Machines and secret writing

Hall of fame

Nobody has opened all eight doors yet. First place is free.