Home Notes Papers

Encryption

Paper 1

This section is examined in Paper 1.

The Purpose of Encryption
Encryption is the process of converting readable data into an unreadable format to protect it during transmission or storage. It is a fundamental security measure used to ensure confidentiality.

When data is transmitted over a network (such as the internet), it travels through multiple physical devices and cables. Without encryption, anyone who intercepts this data can read it. Encryption ensures that even if the data is intercepted by an unauthorized person (an eavesdropper), they cannot understand its content without the correct decryption key.

Building on the concept of data security, encryption does not prevent the data from being stolen or intercepted; it only prevents the data from being understood if it is intercepted.

Plain Text and Cipher Text
Plain text: The original, readable data before it is encrypted.

Cipher text: The scrambled, unreadable output produced after the plain text has been processed by an encryption algorithm using a key.

The goal of encryption is to transform plain text into cipher text. The goal of decryption is to transform cipher text back into plain text.

Symmetric Encryption
Symmetric encryption (also known as private-key encryption) uses the same key for both encrypting and decrypting data.

  1. The sender uses a specific encryption key to convert plain text into cipher text.
  2. This same key is sent securely to the receiver.
  3. The receiver uses this identical key to decrypt the cipher text back into plain text.

Because the same key is used, both parties must already possess or securely share this secret key before communication begins.

Asymmetric Encryption
Asymmetric encryption (also known as public-key encryption) uses a pair of keys: a public key and a private key. These keys are mathematically linked but are different from each other.

  • The public key is shared openly with anyone. It is used to encrypt data.
  • The private key is kept secret by the owner. It is used to decrypt data.

Data encrypted with the public key can only be decrypted by the corresponding private key, and vice versa.

Comparison of Symmetric and Asymmetric Encryption
FeatureAsymmetric Encryption
Keys Used
Key Distribution
Speed
Security Context
How SSL/TLS Uses Both Methods

In practice, systems like SSL (Secure Sockets Layer) or TLS combine both methods to balance security and speed.

  1. Authentication: The web browser asks the web server to identify itself. The server sends its digital certificate. A digital certificate is a document that verifies the server's identity, signed by a trusted authority.
  2. Key Exchange (Asymmetric): The browser uses the server's public key (from the certificate) to encrypt a randomly generated session key. This solves the key distribution problem because the session key never travels across the network in plain text.
  3. Data Transmission (Symmetric): Both parties now possess the session key. They use this symmetric key to encrypt all subsequent data because symmetric encryption is much faster for large amounts of data.
⚠︎ Confusing Interception with Understanding
Mistake: Stating that encryption 'prevents data from being stolen' or 'stops interception'.

Correction: Encryption does not stop the data from being intercepted. An attacker can still capture the cipher text packets. The purpose of encryption is to ensure that if the data is intercepted, it remains meaningless and cannot be understood without the decryption key.

⚠︎ Vague Descriptions of Encryption Types
Mistake: Describing encryption in general terms (e.g., 'it scrambles data') when asked specifically about symmetric or asymmetric encryption.

Correction: You must specify the key mechanism. For symmetric, explicitly state 'same key'. For asymmetric, explicitly state 'public and private keys'.

Describing SSL/TLS Handshake Steps
When to use: When asked to explain how a secure connection is established (e.g., 'Explain how SSL creates a secure connection').

Why examiners accept this: Examiners look for the specific sequence of authentication and key exchange. You must mention that asymmetric encryption is used initially to establish trust and share a key, not just for the whole session.

Correct phrasing example: 'The web browser requests the server's identity by asking for its digital certificate. The server sends the certificate, which contains its public key. The browser uses this public key to encrypt a session key. This ensures that only the server (with the matching private key) can decrypt it.'

Note on Digital Certificates: If you mention certificates, clarify they are used for authentication (verifying identity) and contain the public key.

Explaining Why Asymmetric is Used
When to use: When asked for a reason to use asymmetric encryption over symmetric encryption.

Why examiners accept this: The core advantage is solving the key distribution problem. Symmetric encryption requires both parties to have the same key, which is hard to share securely over an insecure network. Asymmetric encryption allows two parties to communicate without having previously shared any secret keys.

Correct phrasing example: 'Asymmetric encryption allows secure communication between parties who have never met before, because they do not need to exchange a secret key beforehand. The public key can be sent openly, while only the private key remains secret.'

Avoid: Saying 'it is more secure' without explanation. Both methods are secure; asymmetric is just more convenient for key exchange.

Past Paper Style Questions
Q:
State the purpose of encrypting data during transmission. [1]
A:
Purpose: To ensure that if data is intercepted, it cannot be understood (remains meaningless) without the decryption key.
Q:
Describe how symmetric encryption works. [4]
A:
  1. Plain text is encrypted into cipher text using an algorithm and a key. [1]
  2. The same key is used for both encryption and decryption. [1]
  3. The cipher text is sent to the receiver. [1]
  4. The receiver uses the same key to decrypt the cipher text back into plain text. [1]
Q:
State one difference between symmetric and asymmetric encryption. [1]
A:
Difference: Symmetric encryption uses a single shared key for both encryption and decryption, whereas asymmetric encryption uses two different keys (a public key and a private key).
Q:
Explain why asymmetric encryption is often used to establish a secure connection before using symmetric encryption. [2]
A:
  1. Asymmetric encryption allows the public key to be shared openly without risk, solving the key distribution problem. [1]
  2. It enables the secure exchange of a session key (symmetric key) over an insecure channel, which is then used for faster data transmission. [1]
Beta v0.7.8 Free while we're in beta — it transitions to paid post launch. Thank you for supporting us at this stage!