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

Lesson at a glance

  1. Starter: crack the board message (5 minutes)
  2. Explain the Caesar cipher (5 minutes)
  3. Build an alphabet slider (5 minutes)
  4. Task A: encrypt and decrypt (15 minutes)
  5. Task B: brute force, trying every key (10 minutes)
  6. Task C: frequency analysis (15 minutes)
  7. 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):

  1. ALGORITHM, key 1
  2. COMPUTERS FOLLOW INSTRUCTIONS, key 3
  3. THE KEY IS SECRET, key 5

Decrypt these (turn ciphertext into plaintext):

  1. RIZIV WLEVI CSYV TEWWASVH, key 4
  2. OXMBIZDSYX UOOZC NKDK CKPO, key 10
  3. 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:

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:

  1. Make a tally chart of every letter in the message
  2. Find the most common letter
  3. Assume it stands for E. Count how many places it is from E. That is the key.
  4. Decrypt the whole message with that key
  5. 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:

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:

  1. ALGORITHM, key 1 → BMHPSJUIN
  2. COMPUTERS FOLLOW INSTRUCTIONS, key 3 → FRPSXWHUV IROORZ LQVWUXFWLRQV
  3. THE KEY IS SECRET, key 5 → YMJ PJD NX XJHWJY
  4. RIZIV WLEVI CSYV TEWWASVH, key 4 → NEVER SHARE YOUR PASSWORD
  5. OXMBIZDSYX UOOZC NKDK CKPO, key 10 → ENCRYPTION KEEPS DATA SAFE
  6. 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:

Common problems and quick fixes

Adapting for different year groups

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.

More templates and kits
Browse the Quillwork shop