Decrypting a message with a Caesar shift
To decrypt a Caesar ciphertext, move each letter back along the alphabet by the key number to get the plaintext. A wraps back to Z. Then check the result is a real message.
Understanding Decrypting a message with a Caesar shift in ACARA Digital Technologies Years 7–8
What it does: Subtracting the key moves each letter back. The mod 26 makes it wrap from A back to Z. FCJJM is not a real word, so key 5 is wrong. Key 3 gives HELLO, which is a real message. Encrypting shifts letters forward by the key. Decrypting does the opposite and shifts them back by the key. Back 5 from D goes C, B, A, then wraps to Z, then Y. I is what you get by going forward 5. When you go back past A you wrap round to the end of the alphabet at Z. Decryption is the reverse of encryption, so the shift must go backwards.
Common mistakes: Decrypting a Caesar cipher moves each letter BACK along the alphabet by the key. Moving forward is what encryption does. It should be direction = 'back'. This adds the key, which moves the letter forward and re-encrypts it. To decrypt you subtract the key: n = (n - key) % 26.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 674–695) and word search (Modules 635–695).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
shift back by keyFill in the Blanks
Spot the Error
Student with a class code? Join your class →