Free KS3 Caesar Cipher Cover Lesson: No-Tech Plan + Answers
A complete 60-minute KS3 Computing cover lesson on Caesar ciphers and code-breaking. It needs only paper and pens, comes with a script for the supervisor, and has every answer checked.
This is a one-hour cryptography lesson for Years 7–9 that any cover supervisor can run. It needs no computers, logins, slides or internet. Pupils need a pen and paper. You can copy every puzzle onto the board or print this page. A full answer key is at the bottom, so the supervisor never has to work out a cipher on the spot.
Topic links: encryption, keys, algorithms and why weak encryption can be broken. These ideas come up throughout KS3 Computing and lead into GCSE work on security.
What you need
- This page, printed or on one device for the supervisor only
- Lined paper or exercise books
- Pens and pencils
- Optional: scissors and a strip of card per pupil for an alphabet slider
Lesson at a glance
- Starter: crack the board message (5 minutes)
- Explain the Caesar cipher (5 minutes)
- Build an alphabet slider (5 minutes)
- Task A: encrypt and decrypt (15 minutes)
- Task B: brute force, trying every key (10 minutes)
- Task C: frequency analysis (15 minutes)
- Plenary: why this cipher is weak (5 minutes)
Supervisor script
You don't need any computing knowledge. Read the bold lines aloud as written.
1. Starter (5 minutes)
Write this on the board before pupils come in:
PHHW PH DW WKH OLEUDUB
Say: "This is a secret message. Each letter has been swapped for the letter three places further along the alphabet. To read it, move each letter three places back. A becomes X, B becomes Y, C becomes Z. You have five minutes."
Answer: MEET ME AT THE LIBRARY
2. Explain the idea (5 minutes)
Say: "This is called a Caesar cipher. Julius Caesar is said to have used it for military messages. Turning a normal message, the plaintext, into a secret one, the ciphertext, is called encryption. Turning it back is decryption. The number of places you shift is the key. Anyone who knows the key can read the message."
Write these four words on the board for pupils to copy with a definition each: plaintext, ciphertext, encryption, key.
3. Build an alphabet slider (5 minutes)
Pupils write the alphabet in a row across the top of a page:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Underneath, they write it again, starting from the letter the key points to. For a key of 3 the second row starts at D and wraps round:
D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
To encrypt, find a letter in the top row and write the letter below it. To decrypt, go the other way. If you have card and scissors, pupils can make two strips and slide one along the other to change the key.
Say: "Write the letters neatly and evenly spaced. Most mistakes in this lesson come from a messy alphabet."
4. Task A: encrypt and decrypt (15 minutes)
Copy these onto the board. Pupils show their working.
Encrypt these (turn plaintext into ciphertext):
- ALGORITHM, key 1
- COMPUTERS FOLLOW INSTRUCTIONS, key 3
- THE KEY IS SECRET, key 5
Decrypt these (turn ciphertext into plaintext):
- RIZIV WLEVI CSYV TEWWASVH, key 4
- OXMBIZDSYX UOOZC NKDK CKPO, key 10
- FDHVDU XVHG D VKLIW RI WKUHH, key 3
Extension: Pupils write their own message with a key of their choice, swap with a partner without telling them the key, and save it for Task B.
5. Task B: brute force (10 minutes)
Say: "Now you are the code-breaker. You've caught a message but you don't know the key. There are only 25 possible keys, so you can try them all. This is called a brute-force attack."
Write on the board:
IPUHYF PZ IHZL ADV
Tips for pupils:
- Take only the first word, IPUHYF, and shift it back by 1, then 2, then 3, and so on
- Stop when you get a real English word, then use that key on the rest of the message
- Record the key you found
Then pupils try to brute-force the partner message from the Task A extension.
Say: "How many tries did it take? A computer could try all 25 keys in a fraction of a second. What does that tell you about this cipher?"
6. Task C: frequency analysis (15 minutes)
Say: "In English, E is the most common letter. If we count which letter appears most in a secret message, it is probably standing in for E. That gives us the key without trying every option. This is called frequency analysis."
Write this longer message on the board:
CQN NWNVH FRUU JCCJLT JC MJFW BX BNWM CQN VNBBJPN CX CQN PNWNAJU JC XWLN
Steps for pupils:
- Make a tally chart of every letter in the message
- Find the most common letter
- Assume it stands for E. Count how many places it is from E. That is the key.
- Decrypt the whole message with that key
- Write two sentences: did it work, and why does this method work better on long messages than short ones?
7. Plenary (5 minutes)
Ask the class these questions aloud and take answers:
- "Why is the Caesar cipher easy to break?" Only 25 keys, and letter patterns stay the same.
- "What would make a cipher harder to break?" Many more possible keys, and letters that don't always encrypt to the same thing.
- "Where do we use encryption today?" Online banking, messaging apps, passwords, websites that show a padlock. Modern encryption uses keys far too large to brute-force by hand.
Exit ticket: pupils write the definition of key and one reason the Caesar cipher is weak.
Answer key
Starter: MEET ME AT THE LIBRARY (key 3)
Task A:
- ALGORITHM, key 1 → BMHPSJUIN
- COMPUTERS FOLLOW INSTRUCTIONS, key 3 → FRPSXWHUV IROORZ LQVWUXFWLRQV
- THE KEY IS SECRET, key 5 → YMJ PJD NX XJHWJY
- RIZIV WLEVI CSYV TEWWASVH, key 4 → NEVER SHARE YOUR PASSWORD
- OXMBIZDSYX UOOZC NKDK CKPO, key 10 → ENCRYPTION KEEPS DATA SAFE
- FDHVDU XVHG D VKLIW RI WKUHH, key 3 → CAESAR USED A SHIFT OF THREE
Task B: IPUHYF PZ IHZL ADV uses key 7 and decrypts to BINARY IS BASE TWO. Pupils find it by shifting the first word back 7 places.
Task C:
- The most common letter is N, which appears 11 times. The next most common are C (8) and J (7).
- From E to N is 9 places, so the key is 9.
- Decrypted: THE ENEMY WILL ATTACK AT DAWN SO SEND THE MESSAGE TO THE GENERAL AT ONCE
- Good written answer: frequency analysis works better on long messages because there are enough letters for the real patterns of English to show. In a short message the most common letter might not be E.
Common problems and quick fixes
- "I keep getting nonsense." Check the alphabet rows line up. Usually one letter has been skipped or doubled.
- "What happens after Z?" Go back to A. The alphabet wraps round like a clock.
- Pupils finish early: Ask them to encrypt a message with a key of 13, then encrypt the result again with 13. They should find they get the original message back. Ask them why: 13 + 13 = 26, a full trip round the alphabet.
- Pupils struggle with Task C: Give them the hint that N stands for E and let them work out the key from there.
- Spaces and punctuation: Leave them as they are. Only letters are shifted.
Adapting for different year groups
- Year 7: Spend longer on Task A and use only keys 1–5. Treat Task C as a whole-class activity on the board.
- Year 8: Run the lesson as written.
- Year 9: Ask pupils to write the Caesar cipher as an algorithm in numbered steps or pseudocode, for example "for each letter in the message, move it forward by the key, wrapping from Z to A".
Notes for the teacher who set the work
Ask the supervisor to collect the exit tickets and the Task C written answers. These show quickly who understood keys and code-breaking. In the next lesson you can build on this with substitution ciphers that don't use a fixed shift, or with a discussion of why modern encryption uses huge keys.
Browse the Quillwork shop