Caesar cipher worksheet
Encrypt, decrypt and crack the Caesar cipher. With a cipher wheel to cut out and a math corner on modular arithmetic.
The Caesar cipher
Julius Caesar hid his letters by moving every letter a fixed number of places along the alphabet. With a shift of 10, A becomes K, B becomes L and so on. At the end of the alphabet you start again at A.
Every letter has a number. That makes the cipher a calculation.
Task 1 Encrypt this message with a shift of 10.
Task 2 These messages were encrypted with a shift of 8. Decrypt them: move every letter 8 places back.
Task 3 This message was encrypted with an unknown shift. One of its words is FRIDAY. Find the shift and decrypt the message.
Task 4 Math corner
Encrypting is adding: c = (p + k) mod 26. “mod 26” means: if the result is 26 or more, subtract 26.
| Letter | p | k | p + k | mod 26 | Cipher |
|---|---|---|---|---|---|
| N | 13 | 10 | |||
| D | 3 | 10 | |||
| A | 0 | 10 |
You encrypt with a shift of 11 and then encrypt the result again with 18. Which single shift does the same? ______
Cipher wheel to cut out
Cut out both discs. Put the small disc on the large one and push a split pin (or a pencil) through both centers. Turn the inner disc until A on the outside is above the cipher letter for A. Now read plain letters outside and cipher letters inside. The numbers help with the math corner.
Answer key: The Caesar cipher
For teachers. Same variant number, same answers.
- Task 1
- GO KDDKMU KD NKGX
- Task 2
- THE ROBOT DANCES AT MIDNIGHT
EVERY GOOD CODE NEEDS A KEY - Task 3
- Shift 14: THE TEST IS ON FRIDAY
- Task 4
- N: 13 + 10 = 23 → 23 = X · D: 3 + 10 = 13 → 13 = N · A: 0 + 10 = 10 → 10 = K
11 + 18 = 29 → 3
What students learn
- Encrypt and decrypt with a shift
- Find an unknown shift by trying or by clues
- Write the cipher as (p + k) mod 26
- Explain why 25 keys are far too few
Tip: show the method in the projector mode first. Students who finish early can go on with a class challenge.