HomeCiphers › Shift Cipher

Shift Cipher

Slide the whole alphabet along by a secret number. Julius Caesar used this one, and it takes a code-breaker about a minute.

Rail Fence

Press Run it to start the machine.
0 / 0
Result

How it works

Write the alphabet, then write it again underneath but slid along by your key number. Every letter in the message swaps for the letter below it. A shift of 13 is special: encoding and decoding are the same job.

  1. Agree a key number from 1 to 25.
  2. Slide the second alphabet along by that many letters.
  3. Swap every letter for the one underneath.

The story

Rome, about 50 BC

Caesar’s three-letter slide

The Roman writer Suetonius reported that Julius Caesar wrote his private letters with the alphabet shifted along by three, so A became D. It worked for a simple reason: most people who intercepted a message could not read at all, and those who could had never heard of such a trick. Two thousand years later, a shift cipher takes a code-breaker about a minute.

Crack these

Why did the math book look so sad?
What is a scarecrow’s favorite fruit?
← Key Word Columns All the ciphers Date Shift →

Take it off the screen

Print this page and you get a worksheet: how the cipher works, where it came from, and the puzzles to crack, with the machine and the menus left off.

Print this page as a worksheet Try the challenges

Read more elsewhere

Longer, harder and written for grown-ups. Worth a look when this page runs out.

Caesar cipher