Key space: how many keys a cipher has
The total number of different keys a cipher allows. A Caesar cipher has only 25 useful keys, so an attacker can try them all. More keys means a bigger key space and a stronger cipher.
Understanding Key space: how many keys a cipher has in ACARA Digital Technologies Years 9–10
What it does: With only 25 keys the loop checks every shift and prints each result, so the attacker soon finds the readable message. A 128-bit key allows 2 to the power of 128 keys, a huge key space that cannot be tried one by one. More possible keys means a bigger key space, which makes trying every key much harder. A shift of 26 returns every letter to itself, so it is not a useful key. That is why the key space is 25. 26 keys is still very easy to try. The key space must grow a lot to stop brute force.
Common mistakes: Key 0 leaves the message unchanged, so a Caesar cipher has 26 - 1 = 25 useful keys. It should be keys = letters - 1. A cipher with 2 ** 128 keys has a much bigger key space than a Caesar cipher with 25 keys. The test should be bigger > caesar.
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 828–859) and word search (Modules 810–859).
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
key spaceFill in the Blanks
Spot the Error
Student with a class code? Join your class →