Computer ScienceExam code: 0984

Encryption

Data Transmission

When data crosses a network, anyone who can intercept the cable or radio signal could potentially read it. stops that by scrambling the data into a form that only the intended recipient can unscramble.

Encryption is the process of converting (readable data) into (unreadable, scrambled data) using an algorithm and a , so that only someone with the correct key can convert the ciphertext back into plaintext.

The five terms that matter most:

TermMeaning
PlaintextThe original, readable data before encryption
CiphertextThe scrambled, unreadable data after encryption
Encryption algorithmThe mathematical procedure that turns plaintext into ciphertext (and back)
KeyA piece of secret information (usually a binary string of a fixed length) that controls how the algorithm scrambles the data
DecryptionThe reverse process: turning ciphertext back into plaintext using the key

Encryption does not stop an attacker from intercepting the data. It only stops them from understanding it.

Common exam question

Stating the purpose of encrypting data

Question: State the purpose of encrypting data before it is transmitted, or give one reason why the data is encrypted (1 mark).

Asked in 2 of the 17 papers. The mark is for the idea that if someone intercepts the data they cannot understand it: the data is meaningless to them because they do not have the key to decrypt it. One scheme also gives the mark simply for saying encryption keeps the data secure, or that the data is sensitive or confidential, but the other scheme lists only that first idea.

So describe what happens to the intercepted data, the one answer both schemes credit. Encryption does not stop the data being captured; it makes the captured data unreadable.

Why encryption matters more on wireless than wired networks

Both wired and wireless networks need encryption, but wireless networks are especially exposed because the signal travels through the air and can be picked up by any nearby radio receiver. Anyone within range of a Wi-Fi access point can in principle capture the radio waves. On a wired network, an attacker would have to physically tap into the cable to intercept anything.

Wireless networks therefore use dedicated security protocols such as WPA2 (Wi-Fi Protected Access 2) to encrypt all traffic between the device and the access point.

How a Wi-Fi network encrypts data

A typical wireless connection works like this:

  1. The Wi-Fi network is identified by an SSID (Service Set Identifier), which is the name of the network.
  2. The user enters the SSID and a password when joining the network.
  3. The SSID and password are combined to derive a master .
  4. Every device on the network has the same master key.
  5. The master key never travels across the network. Lacking the key, an eavesdropper sees the captured packets only as scrambled bytes.
  6. Data sent from a device is encrypted with the master key into before transmission.
  7. The receiving end decrypts the ciphertext using the same master key.
Wi-Fi encryption: the SSID and password combine to form a master key held by both the router and the device; data sent between them is encrypted, so an eavesdropper intercepting the traffic without the master key sees only scrambled bytes
Source: Encryption by Save My Exams

Quick check

4 short questions on this note. See what has stuck, and where to look if something hasn't.

About 2 minutes

Build on this topic