Macmillan Academy The Scholar Lab

Computing · KS3 · logic

Crack the Cipher

Break a chain of secret messages — each tougher than the last — then design one of your own that's genuinely hard to crack.

The challenge

Message 1 (Caesar shift). Every letter has been moved the same number of steps through the alphabet. Decode:

WKH VHFUHW LV VDIH

Message 2 (substitution). Each letter has been swapped for a different one (not a simple shift). Use letter patterns to crack:

YForp Igr Iqjr Gp Dtgcmdcqe — (start by finding the short common words).

Then: design your own cipher, encode a message, and write a sentence explaining why it would be hard for someone to break.

Code-breaking is detective work: you don't guess the whole message, you find one foothold and pull.

How to get started

  1. For a Caesar shift, the whole alphabet has rotated by a fixed amount — so try shifting every letter back by the same number until words appear.
  2. For a substitution cipher, count how often each letter appears — English uses E, T, A, O most.
  3. Look for one- and two-letter words ("a", "I", "is", "to") and common pairs like "th" and "he".
  4. When you design your own, think about what makes Message 1 so much easier to break than a good cipher.

Stuck? Open a hint

Try the challenge first — then reveal these one at a time.

Hint 1
Message 1 is shifted by 3. Move each letter back three places: W→T, K→H, H→E… and read it off.
Hint 2
In Message 2, the commonest letter is probably E, and the commonest three-letter word is usually the. Pin those down first.
Hint 3
A Caesar cipher has only 25 possible keys, so a computer (or a patient person) can simply try them all. Real strength comes from a much larger key space.

Take it further

Find out why the Caesar cipher is trivial to break but a one-time pad is mathematically unbreakable. Then look up the Vigenère cipher and try one.

Love this? It's exactly the thinking behind the CyberFirst competitions in the diary.

Produce & share

Make something: Send the decoded versions of both messages, plus your own cipher: an encoded message for Mr King to try to crack, and a short explanation of why you think it's hard to break.

When it's ready, email your work to Mr King. The best pieces may be featured in the student showcase.

What you'll practise

Pattern recognition, logical deduction, frequency analysis, and a first real taste of cryptography and cyber security.