All subjects · Information Technology · WIT13 2 hour written exam on data, enabling technologies and systems development
Symmetric and asymmetric encryption
Edexcel IAL Information Technology · WIT13 2 hour written exam on data, enabling technologies and systems development
Encryption protects data stored and sent across networks. Symmetric encryption uses one shared key; asymmetric (public key) encryption uses a pair of keys. You need their features, functions, strengths and weaknesses (spec 13.5.1 and 13.5.2).
Symmetric encryption
In symmetric encryption the same secret key is used to encrypt and decrypt.
Features: fast and efficient, so suitable for large amounts of data (disk encryption, files, the bulk of a secure web session). AES is the widely used standard: NIST's FIPS 197 specifies AES with keys of 128, 192 or 256 bits, encrypting data in 128-bit blocks.
Problems:
- Key distribution: the key must be shared securely in advance; if it is intercepted, all messages can be read.
- Key management: every pair of people needs its own key: n people need n(n - 1)/2 keys.
Simple illustrations: a Caesar cipher (shift each letter by k) and XOR with a key (applying the same XOR again decrypts).
Asymmetric (public key) encryption
Each user has a key pair: a public key, shared openly, and a private key, kept secret. Data encrypted with one key can only be decrypted with the other.
- Confidentiality: the sender encrypts with the receiver's public key; only the receiver's private key can decrypt.
- Digital signatures (authentication and integrity): the sender signs a hash of the message with their own private key; anyone can verify it with the sender's public key, proving who sent it and that it was not changed.
Features: solves key distribution (public keys can be published); only 2 keys per person (2n in total). But it is much slower, so it is normally used to exchange a symmetric session key, which then encrypts the data (hybrid encryption, as in HTTPS). RSA is a well-known asymmetric algorithm based on the difficulty of factorising the product of two large primes.
Comparison
| Feature | Symmetric | Asymmetric |
|---|---|---|
| Keys | One shared secret key | Public and private key pair |
| Speed | Fast | Slow |
| Key distribution | Difficult: key must be sent securely | Easy: public key can be published |
| Keys for n users | n(n - 1)/2 | 2n |
| Typical use | Bulk data, files, disks | Exchanging session keys, digital signatures, certificates |
Worked example
Toy RSA: p = 5, q = 11, e = 3. Find n, the private key d, and encrypt the message m = 8.
- n = p x q = 55
- phi = (p - 1)(q - 1) = 40
- d is the number with e x d mod 40 = 1: d = 27 (check 3 x 27 = 81 = 2 x 40 + 1)
- Ciphertext c = me mod n = 83 mod 55 = 512 mod 55 = 17
- Decrypt: 1727 mod 55 = 8
Answer: Public key (3, 55); private key (27, 55); ciphertext 17
Check yourself
- How many symmetric keys are needed so that each pair among 20 employees has its own key?
Show answer
190. n(n - 1)/2 = 20 x 19 / 2 = 190.
- How many keys in total are needed for 20 employees using asymmetric encryption?
Show answer
40. Each person has a public and a private key: 40.
- Encrypt the word DATA with a Caesar cipher shifting each letter 3 places forward.
Show answer
GDWD. D to G, A to D, T to W, A to D: GDWD.
- XOR the data byte 10110010 with the key 01101100. Give the 8-bit result.
Show answer
11011110. Bit by bit, 1 where the bits differ: 11011110. XORing the result with the same key gives back 10110010.
- Ana wants to send Ben a confidential message using asymmetric encryption. Which key should she encrypt it with?
- Ben's private key
- Ben's public key
- Ana's public key
- Ana's private key
Show answer
Ben's public key. Only Ben's private key can then decrypt it.
- How does a digital signature prove who sent a message?
- The receiver signs with their public key
- The message is sent twice
- The message is compressed
- The sender signs with their private key, and only their public key verifies it
Show answer
The sender signs with their private key, and only their public key verifies it. Only the sender holds the private key.
- Using the toy RSA public key (e = 3, n = 55), encrypt the message m = 4.
Show answer
9. 43 = 64; 64 mod 55 = 9.
- Explain why HTTPS uses asymmetric encryption to exchange a key and then symmetric encryption for the data.
Show answer
Asymmetric encryption solves the problem of sharing the key securely, but it is slow, so it is used only to exchange a session key; symmetric encryption is fast, so it encrypts the bulk of the data.. Asymmetric for the key (secure sharing), symmetric for data (speed).
Sources
- Pearson Edexcel International Advanced Level in Information Technology specification (first teaching 2018), Issue 2, February 2021
- Pearson Edexcel IAL Information Technology: scheme of work for Unit 3
- NIST: FIPS 197, Advanced Encryption Standard (AES)
- NIST SP 800-56B Rev. 2: key establishment using integer factorization cryptography (RSA)
Last updated 8 November 2026. Spotted a mistake? Tell us.