Data Transmission

Data Transmission

Encryption: symmetric and asymmetric

Encryption Paper 1 11 min read

On this page
  1. In this note
  2. What you should already know
  3. Why data is encrypted
  4. Symmetric encryption
  5. Asymmetric encryption
  6. Summary
  7. Ways they test it
  8. What the examiner looks for
  9. Past-paper questions, solved
  10. Common mistakes
  11. Practice
  12. Can I do this?
  13. Quiz

In this note

Syllabus 2.3 Encryption
  • 2.3.1Understand the need for and purpose of encryption when transmitting data.
  • 2.3.2Understand how data is encrypted using symmetric and asymmetric encryption.

Before this: Error detection. Next chapter: Hardware.

Part 1Learn the topic

The notes: every idea from the start, with our own examples.

What you should already know

Packets travel through many devices

A packet passes through many routers on the internet. Any of them, or a hacker listening on the network, could read it.

Quick check: can a packet be intercepted on its way?

Yes.

Why data is encrypted

Data sent across a network can be intercepted: a third party captures it on the way (e.g. with packet sniffing software). Encryption does not stop the interception, but it makes the data meaningless to anyone who does not have the key.

Encryption uses an algorithm and a key to scramble the plain text (the readable data) into cipher text (scrambled, meaningless data). Decryption uses a key to turn the cipher text back into plain text.

Plain text: the original, readable data. Cipher text: the encrypted, scrambled data. Key: a value used by the encryption algorithm to encrypt or decrypt the data.

Example A very simple encryption algorithm shifts each letter along the alphabet. The key is 3. Encrypt SEND HELP.

Move each letter 3 places on: S → V, E → H …

  1. S E N D → V H Q G
  2. H E L P → K H O S

Answer VHQG KHOS

Anyone who intercepts VHQG KHOS sees nonsense. The receiver, who knows the key is 3, shifts each letter back 3 places to read it. Real encryption algorithms use keys that are hundreds of bits long, so they cannot be guessed.

Symmetric encryption

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

plain textcipher textplain textencryptdecrypt🔑 key A🔑 key A (same)the key must be shared with the receiver first
Symmetric: one shared key.

General methodHow symmetric encryption works

  1. A key is generated (using an algorithm).
  2. The sender uses the key and an encryption algorithm to turn the plain text into cipher text.
  3. The cipher text is transmitted.
  4. The key is also sent to the receiver (separately).
  5. The receiver uses the same key to decrypt the cipher text back into plain text.
The weakness: the key itself has to be sent to the receiver. If the key is intercepted, anyone can decrypt the data.

Asymmetric encryption

Asymmetric encryption uses two different keys that are a matched pair: a public key and a private key. Data encrypted with the public key can only be decrypted with the matching private key.

plain textcipher textplain textencryptdecrypt🔓 receiver's PUBLIC key🔐 receiver's PRIVATE keyanyone can have the public key; only the receiver has the private key
Asymmetric: the receiver's public key encrypts, only the receiver's private key decrypts.

General methodHow asymmetric encryption works

  1. The receiver has a key pair. The public key is given to anyone who asks; the private key is kept secret and never sent.
  2. The sender gets the receiver's public key and uses it to encrypt the plain text into cipher text.
  3. The cipher text is transmitted. The public key cannot decrypt it.
  4. The receiver uses their private key to decrypt the cipher text.
SymmetricAsymmetric
Keysone key, sharedtwo keys: public and private
Encrypt withthe shared keythe public key
Decrypt withthe same shared keythe private key
Who knows the keyssender and receiver both know the keyanyone can know the public key; only the receiver knows the private key
Securitythe key must be sent, so it could be interceptedmore secure: the private key is never sent (no key exchange)
Speedfasterslower (more complex)

Try it yourself

1
What is the encrypted, scrambled data called?
Show answer

Answer Cipher text

2
In asymmetric encryption, which key decrypts the data?
Show answer

Answer The private key

3
Give the purpose of encryption.
Show answer

Answer If the data is intercepted it cannot be understood / is meaningless

Summary

  • Purpose: if data is intercepted, it is meaningless / cannot be understood. Encryption does not stop interception.
  • Encryption: algorithm + key turn plain text into cipher text; decryption turns it back.
  • Symmetric: one shared key encrypts and decrypts; the key must be sent, so it could be intercepted.
  • Asymmetric: public key encrypts, private key decrypts; the private key is never sent, so it is more secure.

If you see …

  • "purpose of encryption"if intercepted · cannot be understood / meaningless
  • "how symmetric works"same key encrypts and decrypts · plain → cipher · algorithm · key sent to receiver
  • "differences symmetric / asymmetric"one shared key vs public + private · public encrypts, private decrypts · who knows them
Part 2How it is examined

Question types, what the examiner gives marks for, and real past-paper questions solved.

Ways they test it

Type 1 Purpose

"State the purpose of encrypting data" [1]

Spot it "purpose".

  1. "If it is intercepted, it cannot be understood." Not "to stop hackers" (it does not stop interception).

Type 2 Describe a type

"Explain how data is encrypted using symmetric encryption" [4]

Spot it "symmetric" or "asymmetric".

  1. Start with the key fact (same key / public + private), then the method steps.

Type 3 Differences

"Describe the differences between symmetric and asymmetric encryption" [4]

Spot it "differences".

  1. Points from both columns of the comparison table.

Type 4 Cloze

"Complete the paragraph about asymmetric encryption" [4-8]

Spot it a word list.

  1. Words to expect: algorithm, plain text, cipher text, meaningless, public, private.

Type 5 Why asymmetric

"Give one reason a person would use asymmetric instead of symmetric" [1]

Spot it "instead of".

  1. More secure // no need to exchange (send) the key.

What the examiner looks for

"Describe the differences between symmetric and asymmetric encryption" [4]

Marking points (one mark each, up to the marks shown)

  • Symmetric has a shared key …
  • … to encrypt and decrypt
  • Both the sender and receiver know the key
  • Asymmetric has different keys // a public key and a private key
  • … the public key encrypts the data and the private key decrypts it
  • … anyone can know the public key but only the intended receiver knows the private key

Keywords same key public key private key encrypt decrypt

"Explain how data is encrypted using symmetric encryption" [4]

Marking points (one mark each, up to the marks shown)

  • The data is encrypted and decrypted using the same key (1 mark), then any three:
  • Plain text is encrypted into cipher text // cipher text is decrypted into plain text
  • Data is encrypted using an algorithm …
  • … that uses a key
  • The key can be generated using an algorithm
  • The key is transmitted to the receiver

Keywords same key plain text cipher text algorithm

Purpose of encryption

0478/12/F/M/24 Q7Paper 1 · Computer systems1 mark
State the purpose of encrypting data.
Credited
  • If the data is intercepted, it cannot be understood
  • to make the data meaningless (to a third party)
Not credited
  • to stop the data being intercepted
  • to stop hackers
  • to keep it safe (alone)
Why

Encryption does not prevent interception; it makes intercepted data useless.

From: 0478/12/F/M/24 Q7(a)(i) mark scheme

Past-paper questions, solved

2210/12/M/J/24 Q2Paper 1 · Computer systems5 marksFull size
How symmetric encryption works, and its purpose

How to start (i) One mark is reserved for "same key": say it first. Then three steps of the method.

Show a full-mark answer and the mark scheme

(c)(i) The data is encrypted and decrypted using the same key. The plain text is encrypted into cipher text using an encryption algorithm that uses the key. The key is generated using an algorithm and is transmitted to the receiver, who uses it to decrypt the cipher text back into plain text.

(c)(ii) To make the data meaningless if it is intercepted.

PartAnswer / workingMarksGuidance
2(c)(i)same key to encrypt and decrypt (1) + any three: plain text → cipher text · algorithm … · … that uses a key · key generated by an algorithm · key transmitted to the receiverB4
2(c)(ii)to help keep the data secure // to make the data meaninglessB1
Total: 5 marks
0478/12/F/M/24 Q7Paper 1 · Computer systems5 marksFull size
Purpose of encryption; differences between symmetric and asymmetric

How to start (ii) needs points about BOTH types. Two about symmetric, two about asymmetric is a safe plan.

Show a full-mark answer and the mark scheme

(a)(i) If the data is intercepted, it cannot be understood.

(a)(ii) Symmetric encryption uses one shared key to both encrypt and decrypt, and both the sender and receiver know it. Asymmetric encryption uses two different keys, a public key and a private key: the public key encrypts the data and the private key decrypts it. Anyone can know the public key, but only the receiver knows the private key.

PartAnswer / workingMarksGuidance
7(a)(i)if intercepted, it cannot be understoodB1
7(a)(ii)Four from: shared key … · … to encrypt and decrypt · both know the key · public and private key · public encrypts, private decrypts · anyone can know the public key, only the intended receiver the private keyB4
Total: 5 marks
2210/11/M/J/25 Q6Paper 1 · Computer systems9 marksFull size
Complete the paragraph about asymmetric encryption

How to start Read the whole paragraph first. Two gaps must be opposite keys (public / private). The last sentence tells you which key anyone can request.

Show a full-mark answer and the mark scheme

(a) algorithm · plain text · cipher text · meaningless · public · private · public · private

(Data is encrypted using an encryption key. This is a type of algorithm that scrambles the plain text and turns it into cipher text. This makes the data meaningless. A public key is used to encrypt the data … A private key is used to decrypt the data. Any device is able to request the public key, but only your device knows the private key.)

(b) It is more secure, because the private key is never sent.

PartAnswer / workingMarksGuidance
6(a)algorithm · plain text · cipher text · meaningless · public/private · private/public (opposite) · public · privateB8
6(b)more secure // no need to worry about key exchangeB1
Total: 9 marks

Common mistakes

  • ✗ "Encryption stops data being intercepted"✓ "Intercepted data cannot be understood"
  • ✗ "Asymmetric: the private key encrypts"✓ "The public key encrypts, the private key decrypts"For sending data to someone.
  • ✗ "Encryption is a key"✓ "An algorithm that uses a key"
  • ✗ "Coded" instead of "cipher text"✓ "Cipher text"Use the exact term.

Practice

Practice: easy, medium, hard

Easy

1
What is unencrypted, readable data called?
Show answer

Answer Plain text

2
How many keys does symmetric encryption use?
Show answer

Answer One (the same key encrypts and decrypts)

3
Encrypt CAT with the shift-3 algorithm.
Show answer

Answer FDW

Medium

1
Explain why symmetric encryption is less secure than asymmetric. [2]
Show answer

Answer The key has to be sent to the receiver, so it could be intercepted; the private key in asymmetric is never sent

2
Describe how asymmetric encryption keeps an email secret. [3]
Show answer

Answer Sender encrypts with the receiver's public key; cipher text sent; only the receiver's private key can decrypt it

3
Decrypt KHOOR (shift-3 algorithm).
Show answer

Answer HELLO

Hard

1
A bank sends account details to a customer. Explain why encryption is needed and which type is most suitable. [4]
Show answer

Answer The data could be intercepted; encryption makes it meaningless to a third party; asymmetric is more suitable: the public key encrypts, only the private key decrypts and it is never sent, so no key exchange can be intercepted

PartAnswer / workingMarksGuidance
data could be interceptedB1
meaningless / cannot be understoodB1
asymmetricB1
private key never sent // no key exchangeB1
Total: 4 marks

Can I do this?

Anything unticked: revise that section first. All ticked: take the quiz.

Quiz

The multiple-choice and guided questions need JavaScript. The concept checks and exam practice below work without it.

Your progress on this note is saved when JavaScript is on.

⬇️ Download this chapter as a PDF: Full notes