Cambridge IGCSE · Topic 2.3
IGCSE Computer Science 0478 / Topic 2 / IGCSE

Meaningless without the key.

Anything sent across a network can be intercepted. Encryption cannot stop that, but it can make sure that whoever grabs the data cannot understand it. Learn the two ways of doing it, and the key problem each one solves.

The key idea

Encryption scrambles plaintext into ciphertext using an algorithm and a key, so that if data is intercepted it is meaningless to anyone without the key. Encryption does not stop interception. In symmetric encryption the same key encrypts and decrypts, so the key has to be shared, and it could be intercepted too. In asymmetric encryption there is a matching pair of keys: data encrypted with the receiver's public key can only be decrypted with the receiver's private key, which is never sent.

asymmetric encryption: Bob's key pair plaintext(Alice) ciphertextx7#Qp!2 plaintext(Bob) Bob's public key Bob's private key encrypts; anyone may have itdecrypts; only Bob has it an interceptor sees only the ciphertext
Fig. 1: anyone can encrypt with Bob's public key, but only Bob's private key decrypts
Section 01

Why encrypt?

Data travelling across networks passes through many devices and can be intercepted by a hacker. Encryption protects what the data means.

Examiner trap

Encryption does not stop data being intercepted or stolen. It makes intercepted data meaningless (unreadable) without the key. Write exactly that.

Section 02

Symmetric: one key.

The lab starts with a Caesar cipher, a very simple symmetric method: shift every letter along the alphabet by the key. Try encrypting a word, then decrypting it.

Worked example Caesar shift
Encrypt HELLO using a Caesar cipher with a key of 3.
  1. Shift each letter 3 places along the alphabet.
  2. H → K, E → H, L → O, L → O, O → R.
Answer: KHOOR
Your turn
The ciphertext MJQQT was made with a Caesar shift of 5. Decrypt it.
Examiner trap

Real symmetric encryption uses very long keys, not a shift of 3. The Caesar cipher only shows the idea: the same key locks and unlocks.

Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

What is ciphertext?

Quick check+10 XP

Using a Caesar shift of 2, what is DATA encrypted to?

Quick check+10 XP

In the lab's asymmetric mode, which key decrypts the message?

Quick check+10 XP

What is the main weakness of symmetric encryption?

Section 03

Asymmetric: two keys.

Switch the lab to asymmetric mode. The receiver publishes a public key and keeps a private key secret.

Worked example Compare
Explain why asymmetric encryption is more secure than symmetric encryption when sending data to a new contact.
  1. In symmetric encryption the one key must be sent to the contact, and it could be intercepted.
  2. In asymmetric encryption only the public key is sent; it can encrypt but not decrypt.
  3. The private key, the only key that can decrypt, never leaves the receiver.
Answer: The decrypting key never has to be transmitted
Examiner trap

The sender uses the receiver's public key, not its own. The answer "the message is encrypted with a private key and decrypted with a public key" is the wrong way round for sending secret data.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to IGCSE Paper 1 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

What is the purpose of encrypting data before it is transmitted?

Exam style+20 XP

Kai wants to send Mia a secret file using asymmetric encryption. Which key does Kai use to encrypt it?

Exam style+20 XP

Which statement about symmetric encryption is correct?

Exam style+20 XP

A hacker intercepts a message and the public key used to encrypt it. Why can they not read it?

Skill unlocked

Encryption, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
Why data is encrypted, plaintext and ciphertext, symmetric encryption with one shared key, and asymmetric encryption with public and private keys.