Encryption key
A secret value used by the encryption algorithm to scramble data into ciphertext and unscramble it again. A different key gives different ciphertext, and a longer key is harder to guess.
Understanding Encryption key in IGCSE Computer Science Paper 1
What it does: The same message and algorithm give two different results because the keys 1 and 2 are different. Decryption uses the key to reverse the scrambling, so the original plaintext is recovered. The key is a value used by the encryption algorithm. The message before encryption is called plaintext. The algorithm can be public. The security depends on the key staying secret. A longer key has many more possible values, so an attacker needs far more guesses. Knowing the algorithm is not enough. Without the correct key the ciphertext stays scrambled. The shift value (for example 3) is the key. The shifting method is the algorithm.
Common mistakes: To scramble plaintext into ciphertext you call encrypt, not decrypt. Line 3 should be cipher ← encrypt(text, key). The ciphertext was made with key 5, so it must be unscrambled with the same key. Using 7 gives the wrong text. It should be decrypt(cipher, key).
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 189–203) and word search (Modules 189–217).
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
encryption keyFill in the Blanks
Spot the Error
Student with a class code? Join your class →