📡 Paper 1 · Topic 2: Data Transmission
2.3 Encryption & SSL/TLS
Cambridge IGCSE Computer Science 0478 · ~13 min read · ⭐ Pro

What is Encryption?

Encryption is the process of converting data (plaintext) into an unreadable form (ciphertext) using an algorithm and a key. Only someone with the correct key can decrypt it back to plaintext.

  • Plaintext: original readable data
  • Ciphertext: scrambled, unreadable data
  • Key: a value used to encrypt and decrypt data
  • Encryption algorithm: the mathematical process applied

Encryption protects data in transit (e.g. online banking) and at rest (e.g. encrypted files).

Symmetric Encryption

In symmetric encryption, the same key is used to both encrypt and decrypt the data.

  • Fast and efficient
  • Problem: securely sharing the key with the recipient — if the key is intercepted, the data is compromised
  • Example: AES (Advanced Encryption Standard)

Asymmetric Encryption

In asymmetric encryption, two mathematically linked keys are used:

  • Public key: shared openly with anyone. Used to encrypt data.
  • Private key: kept secret by the owner. Used to decrypt data.

Only the private key holder can decrypt data encrypted with their public key. This solves the key-sharing problem.

How it works:

  1. Alice wants to send Bob a secure message
  2. Bob shares his public key with Alice
  3. Alice encrypts the message using Bob's public key
  4. Bob decrypts using his private key (only he has it)
FeatureSymmetricAsymmetric
Keys usedOne shared keyPublic + Private key pair
SpeedFasterSlower
Key sharingProblem — key must be shared securelySafe — public key shared openly
ExampleAESRSA, SSL/TLS handshake

SSL/TLS

SSL (Secure Sockets Layer) and its successor TLS (Transport Layer Security) are protocols that provide secure, encrypted connections over the internet.

  • Used by HTTPS websites (the padlock in the browser)
  • SSL/TLS uses asymmetric encryption to exchange a session key
  • Then uses symmetric encryption (with that session key) for speed during the session
  • Provides: confidentiality, integrity, and authentication
Exam tip: A common question asks you to describe the difference between symmetric and asymmetric encryption. The key distinction: symmetric uses ONE shared key (fast but key sharing is risky); asymmetric uses a KEY PAIR (public to encrypt, private to decrypt — more secure for key exchange). SSL/TLS combines both.
⚠️ Common Mistakes
  • Saying the public key decrypts — the public key ENCRYPTS; only the private key decrypts
  • Confusing SSL and TLS — TLS is the modern, more secure successor to SSL; both are commonly called "SSL" informally
  • Thinking encryption prevents interception — it doesn't stop data being captured, it just makes it unreadable to the interceptor
Video coming soon
Click slide or press arrow keys to navigate
✍️

Worksheet — Encryption

5 questions · 13 marks

Q1Explain what is meant by the term 'encryption' in the context of data security.[2]
✅ Mark scheme
Converting plaintext (readable data) [1] into ciphertext (unreadable scrambled data) using an algorithm and a key so that only authorised parties can read it [1]
Q2Describe the difference between symmetric and asymmetric encryption.[4]
✅ Mark scheme
Symmetric uses the same key to encrypt and decrypt [1]; asymmetric uses a key pair (public key to encrypt, private key to decrypt) [1]; symmetric is faster but the key must be shared securely [1]; asymmetric solves the key sharing problem as the public key can be shared openly [1]
Q3A user wants to send a secure email to a colleague using asymmetric encryption. Describe the steps involved.[3]
✅ Mark scheme
The recipient shares their public key [1]; the sender encrypts the email using the recipient's public key [1]; the recipient decrypts using their private key (which only they hold) [1]
Q4Explain why HTTPS is more secure than HTTP.[2]
✅ Mark scheme
HTTPS uses SSL/TLS to encrypt data [1]; so even if data is intercepted it cannot be read by a third party [1]
Q5State one advantage and one disadvantage of symmetric encryption compared to asymmetric encryption.[2]
✅ Mark scheme
Advantage: faster / more efficient [1]; Disadvantage: the key must be securely shared with the recipient — if intercepted the data is compromised [1]
Quiz — Encryption
Q 1 of 8
Score
/ 8
Click to reveal
TermDefinition
🎯

Mini Test — Encryption

10 minutes · mixed marks

← 2.2 Error Detection Topic 2 Complete → Topic 3 Next: 3.1a CPU →
🔒
Pro Content
Upgrade to Pro to access all lessons.
£7.99/month
or £59/year
Subscribe now →