Guide · Tier 1

The Caesar shift

Move every letter the same distance along the alphabet. The oldest trick in the book, and the first one Black Chamber teaches.

What it is

A Caesar cipher replaces every letter with the one a fixed number of places further along the alphabet, wrapping round from Z back to A. With a shift of 3, A becomes D, B becomes E, and X wraps round to A. The Roman historian Suetonius says Julius Caesar wrote his private letters this way. Read the full story on the Archive card Caesar's Letters.

Turn the wheel

The outer ring is the real letter; the inner ring is the letter you write down. Turn the inner ring to set the shift.

Shift 3

How to encode

  1. Choose a shift from 1 to 25.
  2. Move each letter forward by the shift, wrapping round after Z.
  3. Leave spaces and punctuation as they are.

To decode, move each letter back by the same amount. With shift 3, D goes back to A.

How to break it, step by step

  1. If you know the shift, go back that many places for every letter.
  2. If you don't, there are only 25 possible shifts. Take a short word and try going back 1, 2, 3 and so on until it becomes a real word.
  3. Look for anchors. A three-letter word that appears often is probably THE. A one-letter word is A or I.
  4. Use frequency. In English, E is the most common letter. Whatever letter is most common in a long message is probably E; the distance between them is the shift.
  5. Check by decoding the whole message with the shift you found.

Worked example 1: shift given

Shift 3. Decode:

WUB WKH ROG PLOO

Go back 3 for each letter: W → T, U → R, B → Y. That's the first word.

Answer: TRY THE OLD MILL.

Worked example 2: shift unknown

AOL IHRLY RUVDZ

The first word, AOL, has three letters, so it might be THE. Try going back one shift at a time:

BackAOL becomes
1ZNK
2YMJ
3XLI
4WKH
5VJG
6UIF
7THE

Going back 7 turns it into THE. Decode everything with shift 7: THE BAKER KNOWS.

Common mistakes

  • Shifting the wrong way. To decode, go back by the shift.
  • Forgetting to wrap: with shift 3, Y becomes B, not a symbol.
  • Testing shifts on a long word first. Short words find the shift faster.