Encrypting and decrypting with one shared key
The sender encrypts plaintext into ciphertext with a key; the receiver decrypts it back to plaintext using the same key. A wrong key gives unreadable output.
Understanding Encrypting and decrypting with one shared key in IGCSE Computer Science Paper 1
What it does: Both sides hold identical keys, which is what makes the encryption symmetric. The process runs plaintext to ciphertext to plaintext, with the same key used at both stages. Symmetric means the sender and receiver use one shared key for both encrypting and decrypting. Encryption turns readable plaintext into ciphertext. Decryption is the reverse, done by the receiver. Only the correct key reverses the encryption. A wrong key gives unreadable output. Encrypting goes plaintext to ciphertext; decrypting must go ciphertext to plaintext using the key.
Common mistakes: The receiver must decrypt with the same key the sender used to encrypt. The key is 3, so using 5 gives unreadable output. It should be DECRYPT(cipher, key). The sender turns plaintext into ciphertext by encrypting it, not decrypting it. It should be ENCRYPT(plain, 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
symmetric encryptionFill in the Blanks
Spot the Error
Student with a class code? Join your class →