Public key
The half of a key pair that the owner shares openly. Anyone can use it to encrypt data sent to the owner, but it cannot decrypt that data. Only the matching private key can.
Understanding Public key in IGCSE Computer Science Paper 1
What it does: Sharing the public key is safe because it can only encrypt. The private key stays secret, so the data stays protected. The public key can travel over an insecure network. Even if an interceptor copies it, they cannot decrypt messages with it. A public key can encrypt but not decrypt. This is what makes asymmetric encryption work. The public key is shared openly. The private key is the one the owner never shares.
Common mistakes: The sender must use Bob's public key, which he shares openly. A private key is never shared. It should be getPublicKey("Bob"). The message was encrypted with Amy's public key, but this line sends the plaintext, so an interceptor could read it. It should send the ciphertext: send(cipher, "Amy").
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
public keyFill in the Blanks
Spot the Error
Student with a class code? Join your class →