Encryption: Symmetric and Asymmetric
1. Why Encryption Is Needed
When data travels across a network, it passes through equipment you do not own and cannot control. Anyone who can access that path can intercept the data as it passes. Encryption does not stop interception — it makes the intercepted data meaningless to whoever takes it.
Data sent without encryption is sent as plaintext, which is directly readable. This is why encryption is essential whenever the following are transmitted:
- Passwords and login details
- Bank and payment card details
- Personal data such as medical or school records
- Confidential business communications
2. Key Terms
These four terms are used throughout the topic, and marks are frequently lost by mixing them up.
| Term | Meaning |
|---|---|
| Plaintext | The original data before encryption. Readable and understandable. |
| Ciphertext | The data after encryption. Scrambled and not understandable. |
| Encryption algorithm | The process (or cypher) applied to the plaintext to scramble it. |
| Key | A value used by the algorithm to encrypt and decrypt the data. |
Ciphertext → decryption algorithm + key → Plaintext
3. Symmetric Encryption
In symmetric encryption, the same key is used to both encrypt and decrypt the data. This single key is often called the secret key or private key.
How it works
Because both parties need the identical key, the key itself has to reach the receiver somehow. This creates the central weakness of symmetric encryption.
The key distribution problem
If the secret key is sent across the same network as the data, it can be intercepted too. An interceptor who obtains the key can decrypt every message. Sending the key securely is therefore as difficult as sending the data securely in the first place.
| Advantages | Disadvantages |
|---|---|
| Faster, because the algorithm is less complex | The key must be shared with the receiver, so it can be intercepted |
| Requires less processing power | Every pair of communicating parties needs its own key, so large numbers of keys must be managed |
4. Asymmetric Encryption
Asymmetric encryption solves the key distribution problem by using two different but mathematically related keys, known as a key pair.
| Key | Who has it | What it does |
|---|---|---|
| Public key | Given out freely to anyone | Used to encrypt the data |
| Private key | Kept secret by the owner, never shared | Used to decrypt the data |
How it works
Suppose Amira wants to send confidential data to Ben:
- Ben generates a key pair: a public key and a private key.
- Ben sends his public key to Amira. It does not matter if this is intercepted.
- Amira encrypts her plaintext using Ben's public key, producing ciphertext.
- Amira transmits the ciphertext to Ben.
- Ben decrypts the ciphertext using his private key, which has never been transmitted.
An interceptor can capture both the public key and the ciphertext and still cannot read the data, because the private key was never sent across the network.
| Advantages | Disadvantages |
|---|---|
| The private key is never transmitted, so it cannot be intercepted | Slower, because the algorithm is more complex |
| More secure than symmetric encryption | Requires more processing power |
5. Comparing the Two Methods
| Feature | Symmetric | Asymmetric |
|---|---|---|
| Number of keys | One key | Two keys (a key pair) |
| Key used to encrypt | Secret key | Public key |
| Key used to decrypt | The same secret key | Private key |
| Is a key transmitted? | Yes — the secret key must be shared | Only the public key, which is not secret |
| Speed | Faster | Slower |
| Security | Lower — key can be intercepted | Higher — private key never sent |
6. Exam Focus
Quick self-check
- State the purpose of encryption — not what it prevents, but what it achieves.
- Explain why symmetric encryption is less secure when data is sent over the internet.
- Describe, in order, the five steps by which Amira sends encrypted data to Ben.
- Explain why an intercepted public key is not a security risk.