Skip to content
Cambridge AS & A Level9618

Encryption, Encryption Protocols and Digital Certificates

Computer Science 9618 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Encryption, Encryption Protocols and Digital Certificates notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Encryption, Encryption Protocols and Digital Certificates notes as text: skim, search, and jump between subtopics.

~13 min read

1. Symmetric and asymmetric keys

Plain text is the message before encryption. Cipher text is text encrypted from plain text using an encryption algorithm. Decryption turns the cipher text back into plain text.

In symmetric key cryptography one key is used to encrypt and decrypt. In asymmetric key cryptography a matched pair of keys is used: a public key and a private key.

The public key can be obtained and used by anyone to send encrypted messages. The private key is the unpublished, secret key that is never transmitted anywhere. It is used to decrypt data that was encrypted with its matching public key.

Examiner insight

“Candidates who gave differences between symmetric and asymmetric encryption by including both encryption types in their response achieved marks.” “However, many responses described only one difference in detail, rather than giving a comprehensive answer with several differences.”

Worked example 13 marks

Describe the differences between symmetric key and asymmetric key cryptography.

  1. 1

    Symmetric key encryption uses only one key but asymmetric encryption uses two keys: a mathematically linked pair. [1]

  2. 2

    Asymmetric key encryption uses one key to encrypt and the other key to decrypt, whereas symmetric key encryption uses the same key for both. [1]

  3. 3

    Symmetric key encryption suffers from the key distribution problem, which the matched pair of keys for asymmetric has resolved. [1]

2. A private message and a verified message

To send a private message to an organisation, the individual encrypts with the organisation's public key. Only the organisation's private key can decrypt it.

To send a verified message to the public, the organisation encrypts with its own private key and makes its public key available, for example on its website. Anyone can decrypt the message with the public key. This verifies the sender and gives non-repudiation.

In both cases one key of a linked pair encrypts and the matching key decrypts. Name each key and whose it is.

Examiner insight

“Sometimes candidates did not clearly state which key was used to encrypt and/or decrypt the message, or if they did, it was not explicitly clear that the two keys were linked.” “For example, a good answer would be ‘the message is encrypted using the receiver’s public key and it is then decrypted using the receiver’s private key’.”

Worked example 14 marks

Sheila has a customer called Fred. Fred wants to send Sheila a confidential document as part of a transaction. Explain how Fred uses asymmetric encryption to send his document securely.

  1. 1

    Sheila's computer uses an algorithm to generate a matching pair of keys, private and public. [1]

  2. 2

    Sheila's computer sends Fred's computer Sheila's public key. [1]

  3. 3

    Fred's computer encrypts the document (plain text) using Sheila's public key to create cipher text. [1]

  4. 4

    Fred's computer sends the cipher text to Sheila's computer, which decrypts it using Sheila's private key. [1]

3. Quantum cryptography

The purpose of quantum cryptography is to provide a virtually unbreakable method of encryption. It uses the laws of quantum physics, rather than mathematical formulae, to generate keys.

It can detect eavesdropping, so the receiver can request another key.

It currently works only over relatively short distances. It needs a dedicated line and specialist hardware, which is very expensive. The polarisation of the light may be altered while it travels down fibre optic cables.

Examiner insight

“Candidates who described the purpose of quantum cryptography, such as ‘to produce a virtually unbreakable encryption system’, rather than simply describing quantum cryptography or how it works, achieved the marks.” “However, some answers erroneously compared quantum cryptography with other types of encryption, or simply listed features, without clearly stating the benefit or drawback.”

Worked example 14 marks

Identify two benefits and two drawbacks of quantum cryptography.

  1. 1

    Benefit (any two): eavesdropping can be detected. [1]

  2. 2

    Benefit (any two): virtually unhackable, as the security is based on the laws of physics rather than mathematical algorithms. [1]

  3. 3

    Drawback (any two): high cost of purchasing and maintaining the equipment required. [1]

  4. 4

    Drawback (any two): currently only works over relatively short distances. [1]

4. SSL and TLS

SSL/TLS protocols provide communications security over the internet. They provide encryption, and they let two parties identify and authenticate each other.

TLS is formed of two main protocols. The handshake protocol establishes a secure and reliable connection. The record protocol secures the application data and ensures its integrity and authenticity.

Use SSL/TLS when transmitting authentication data such as passwords or session cookies, when data must be protected from modification on its way to or from a server, and when data is classified as non-public.

Worked example 14 marks

Secure Socket Layer (SSL) and Transport Layer Security (TLS) are two protocols. Explain how SSL/TLS is used when client-server communication is initiated.

  1. 1

    An SSL/TLS connection is initiated by an application, the client. Every new session begins with a handshake. [1]

  2. 2

    The client requests the digital certificate from the server, or the server sends it to the client. [1]

  3. 3

    The client verifies the server's digital certificate and obtains the server's public key. [1]

  4. 4

    The encryption algorithms are agreed and the symmetric session keys are generated. A secure session is established. [1]

5. Digital certificates

A digital certificate is an electronic document used to authenticate the identity of a website, or the online identity of an individual or organisation. It is typically issued by a Certificate Authority (CA).

It contains information identifying the holder and the holder's public key. Items found in one include the name of the holder, a serial number, a version number, an expiry date and the issuer.

Examiner insight

“Candidates generally recognised that a Certificate Authority (CA) is responsible for issuing a digital certificate, so the first step of the process would be to make an application to the CA.”

Worked example 14 marks

Explain the process by which an organisation may acquire its digital certificate.

  1. 1

    The organisation requests a certificate from a Certificate Authority (CA). [1]

  2. 2

    The organisation gathers the information the CA requires, including information to prove its identity. It may send its public key to the CA. [1]

  3. 3

    The CA verifies the organisation's identity. [1]

  4. 4

    The CA generates and issues the certificate, including the organisation's public key. [1]

6. Digital signatures

A digital signature is made from the message, not drawn. The sender hashes the message with an agreed hashing algorithm to produce a message digest. The digest is encrypted with the sender's private key to form the signature.

The digital certificate provides the public key that validates the private key used to create the signature. It also gives non-repudiation.

The receiver decrypts the signature with the sender's public key, hashes the message received with the same algorithm, and compares the two digests. If the message and signature were also encrypted with the receiver's public key, the receiver first decrypts them with the receiver's private key.

Examiner insight

“It was less clear from candidates as to how these two digests were derived, namely the one sent as part of the digital signature and the other generated at the receiver’s end using the same hashing algorithm.” “There was a lot of confusion with using a finger or stylus to sign on a touchscreen device.”

Worked example 14 marks

Explain how a digital signature is used to verify a message when it is received.

  1. 1

    The message together with the digital signature is decrypted using the receiver's private key. [1]

  2. 2

    The digital signature received is decrypted with the sender's public key to recover the message digest sent. [1]

  3. 3

    The decrypted message received is hashed with the agreed hashing algorithm to reproduce the message digest of the message received. [1]

  4. 4

    The two message digests are compared. If both digests are the same the message has not been altered. If they are different it has been altered. [1]

Recap

  • Plain text is encrypted to cipher text by an encryption algorithm. Decryption reverses it.
  • Symmetric: one key for both. Asymmetric: a matched public and private pair.
  • Private message: encrypt with the receiver's public key, decrypt with the receiver's private key.
  • Verified message: encrypt with the sender's private key, decrypt with the sender's public key.
  • Quantum cryptography: virtually unbreakable and detects eavesdropping, but short range and costly.
  • SSL/TLS: encryption and authentication. The handshake agrees algorithms and symmetric session keys.
  • Digital certificate: issued by a CA, holds the holder's public key.
  • Digital signature: hash to a digest, encrypt the digest with the private key, receiver compares two digests.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. Define the term cipher text.1 mark
    Answer
    1. Text that has been encrypted from plain text using an encryption algorithm.

    Trap: Swapping the two terms: plain text is the message before encryption, cipher text is the result.

  2. Amir uses asymmetric encryption to send a message to his bank. Only the bank must be able to read it. State which key Amir uses to encrypt the message and which key the bank uses to decrypt it.2 marks
    Answer
    1. Amir encrypts with the bank's public key [1].
    2. The bank decrypts with the bank's private key [1].

    Trap: Encrypting with Amir's own private key: anyone with Amir's public key could then read the message.

  3. State two differences between symmetric and asymmetric key cryptography.2 marks
    Answer
    1. Symmetric uses a single key but asymmetric uses a pair of keys [1].
    2. In symmetric the same key encrypts and decrypts, but in asymmetric one key encrypts and the matching key decrypts [1].

    Trap: Describing only asymmetric. Both types must appear in the answer.

  4. A company wants everyone who reads its public notice to be able to verify that the notice came from the company. Outline the process using encryption keys.4 marks
    Answer
    1. The company generates a matched pair of keys [1].
    2. It makes its public key available, for example on its website [1].
    3. It encrypts the notice using its private key and sends it [1].
    4. Anyone can decrypt it with the company's public key, which verifies the sender [1].

    Trap: Encrypting with the public key. Then only the company's private key can decrypt, so the readers cannot.

  5. A bank is considering quantum cryptography. Give two benefits and one drawback.3 marks
    Answer
    1. Benefit: eavesdropping can be detected [1].
    2. Benefit: virtually unhackable, as it uses the laws of physics [1].
    3. Drawback: currently only works over relatively short distances, or it is expensive [1].

    Trap: Listing a feature, or comparing with other encryption, without stating the benefit.

  6. Name the protocol that begins every new SSL/TLS session and state what the client requests from the server during it.2 marks
    Answer
    1. The handshake protocol [1].
    2. The client requests the server's digital certificate [1].

    Trap: The record protocol secures the data once the session exists. It does not begin the session.

  7. A customer's browser connects to a bank's website using TLS. Describe what happens from the start of the session until the secure session is established.4 marks
    Answer
    1. A handshake begins the session [1].
    2. The server sends its digital certificate to the client [1].
    3. The client verifies the certificate and obtains the server's public key [1].
    4. The encryption algorithms are agreed and symmetric session keys are generated [1].

    Trap: Missing the digital certificate, or saying the session keys are asymmetric.

  8. An online shop signs every order confirmation it emails with a digital signature. The shop holds a digital certificate. (a) Identify two items found in the shop's digital certificate. [2] (b) Explain why a customer needs the shop's digital certificate to validate the shop's digital signature. [3]5 marks
    Answer
    1. (a) Any two from: the name of the certificate holder, a serial number, an expiry date, the issuer, the holder's public key [2].
    2. (b) The certificate provides the shop's public key [1].
    3. This public key validates the private key the shop used to create the digital signature [1].
    4. So the signature is virtually impossible to spoof, and the shop cannot deny sending the confirmation (non-repudiation) [1].

    Trap: Saying the certificate itself encrypts the email: it supplies the public key that checks the signature.

  9. A software company publishes an update file on its website with a digital signature. While a user downloads the file, an attacker alters it. Explain how the user's computer detects the change, and why the attacker cannot make a new valid signature for the altered file.6 marks
    Answer
    1. The computer obtains the company's public key from the company's digital certificate [1].
    2. It decrypts the signature with the company's public key to recover the digest the company sent [1].
    3. It hashes the downloaded file with the same agreed hashing algorithm to produce a second digest [1].
    4. It compares the two digests [1].
    5. They are different, so the file has been altered [1].
    6. A new valid signature needs the altered file's digest encrypted with the company's private key, which is secret and never transmitted, so the attacker does not have it [1].

    Trap: Writing only that the digests are compared, without saying where each digest comes from: the examiners reported this gap.

  10. A hospital sends a patient report to a clinic. Only the clinic must be able to read it, and the clinic must be able to confirm that the hospital sent it unaltered. The hospital signs the report, then encrypts the report and signature together. Explain which key is used at each stage, from the hospital to the clinic.6 marks
    Answer
    1. The hospital hashes the report with an agreed hashing algorithm to produce a digest [1].
    2. It encrypts the digest with the hospital's private key to form the digital signature [1].
    3. It encrypts the report and signature together with the clinic's public key and sends them [1].
    4. The clinic decrypts the report and signature with the clinic's private key. Only the clinic holds this key, so only the clinic can read the report [1].
    5. The clinic decrypts the signature with the hospital's public key, from the hospital's digital certificate, to recover the digest sent [1].
    6. The clinic hashes the decrypted report with the same algorithm and compares the two digests. If they are the same, the report came from the hospital unaltered [1].

    Trap: Using one pair of keys for both jobs, or not saying whose key it is: privacy uses the clinic's pair, the signature uses the hospital's.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
The message is encrypted with a key and decrypted with a key.The message is encrypted using the receiver's public key and decrypted using the receiver's private key.
A digital signature is a scanned image of a handwritten signature.The message is hashed to a digest and the digest is encrypted with the sender's private key.
Asymmetric uses two keys.Symmetric uses one key to encrypt and decrypt, whereas asymmetric uses two keys.
Quantum cryptography uses photons.Quantum cryptography gives a virtually unbreakable encryption system, using the laws of quantum physics.

Frequently asked questions

What is the difference between symmetric and asymmetric key cryptography?
Symmetric key cryptography uses one key to encrypt and decrypt the message. Asymmetric key cryptography uses a matched pair of keys, a public key and a private key. Symmetric key encryption suffers from the key distribution problem, which the matched pair of keys for asymmetric encryption has resolved.
How do you send a private message using asymmetric encryption?
The sender encrypts the message with the receiver's public key. Only the receiver's private key can decrypt it. The public key can be obtained and used by anyone, but the private key is never transmitted anywhere.
How does a digital signature show that a message has not been altered?
The sender hashes the message with an agreed hashing algorithm to produce a message digest, then encrypts the digest with its private key to form the signature. The receiver decrypts the signature with the sender's public key, hashes the message received with the same algorithm, and compares the two digests. If they are the same, the message has not been altered.
What is a digital certificate and who issues it?
A digital certificate is an electronic document used to authenticate the identity of a website, or the online identity of an individual or organisation. It is typically issued by a Certificate Authority (CA). It contains information identifying the holder and the holder's public key, such as the name of the holder, a serial number and an expiry date.
What is the handshake in SSL/TLS and what does it set up?
Every new SSL/TLS session begins with a handshake. The client requests or receives the server's digital certificate and verifies it, then obtains the server's public key. The encryption algorithms are agreed and symmetric session keys are generated, and a secure session is established.
Is a digital signature a scanned image of a handwritten signature?
No. A digital signature is made from the message, not drawn. The message is hashed to a digest, and the digest is encrypted with the sender's private key. The receiver decrypts the signature with the sender's public key and compares the digests.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters