Substitution cipher
A cipher that swaps each letter for a different letter or symbol using a key table, like a scrambled alphabet. It is not a simple shift, and the table is used in reverse to decrypt.
Understanding Substitution cipher in ACARA Digital Technologies Years 7–8
What it does: The cipher letters Q, E and Z are looked up backwards to get A, C and T, which undoes the encryption. A moves to Q, B moves to W and C moves to E. The distances are all different, so this is not a simple shift. A substitution cipher uses a key table. A simple shift is what a Caesar cipher does, and the Caesar cipher is only one special kind of substitution. Look up each letter in the table: C becomes E, A becomes Q and B becomes W, which gives EQW. QWE is the encrypted form of ABC.
Common mistakes: This prints the plain letter C again, so nothing is substituted. To encrypt, take the letter at the same position in the key row: print(key[pos]). BCDEA is just the alphabet shifted by one, which is a Caesar shift. A substitution cipher needs a scrambled key such as "XQMZP".
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 696–726) and word search (Modules 696–770).
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
substitution cipherFill in the Blanks
Spot the Error
Student with a class code? Join your class →