Skip to content
🧠 BRAIN GYM

Secret codes: the shift cipher

Decode a secret message, then write your own for a friend.

  • Ages 7–15
  • 20 min
  • Paper and craft things
  • On their own
  • Indoors or out

In short

Decode a secret message, then write your own for a friend. This is a shift (Caesar) cipher. It teaches pattern rules and, for older children, the idea of code-breaking by spotting the most common letters, the start of cryptography and computer security. Write the alphabet A to Z in a line.

More brain gym

You need

  • Paper
  • Pencil

How to do it

  1. Write the alphabet A to Z in a line.
  2. Under it, write the alphabet again starting from D, so A sits above D, B above E, and so on; X, Y, Z wrap round to A, B, C.
  3. To code a message, swap each letter for the one below it. To decode, swap each letter for the one above it.
  4. Decode this message: PHHW DW WKH SDUN.
  5. Write your own message with a different shift number and challenge someone to crack it.

Answer

  • PHHW DW WKH SDUN = MEET AT THE PARK (shift of 3).

Make it easier or harder

Easier
Use a shift of 1: each letter becomes the next one.
Harder
Crack a message without being told the shift, by trying each shift or counting letters.

Talk about it

  • How could someone crack the code without knowing the shift?
  • Which letters appear most often in English?

Why it helps

This is a shift (Caesar) cipher. It teaches pattern rules and, for older children, the idea of code-breaking by spotting the most common letters, the start of cryptography and computer security.

  • Patterns
  • Code-breaking
  • Spelling

Try next

Thinking about Mayo for your child?

Leave your number and the admissions team calls you back within one working day — seat status in your child’s class, the fee sheet and your nearest bus stop.

One call, no follow-up pressure. Your number is never shared.