Private key
The secret half of a key pair. Only the owner keeps it, never sends it, and uses it to decrypt data that was encrypted with their public key.
Understanding Private key in IGCSE Computer Science Paper 1
What it does: Only the public key is shared. The private key is never sent over the network, which keeps it safe from interceptors. The owner uses the private key to decrypt messages that were encrypted with their public key. Whoever holds the private key can decrypt the data. If it is stolen, the protection is lost.
Common mistakes: The private key must be taken from keys.private. Here the variable privateKey is given the public half of the pair, so it is not a private key at all. It should be privateKey ← keys.private. The private key is used to decrypt the ciphertext into plaintext, which is stored in text. Outputting cipher shows unreadable ciphertext. It should be OUTPUT text.
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 204–217) 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
private keyFill in the Blanks
Spot the Error
Student with a class code? Join your class →