Skip to main content

A Level ยท Computer Science

Security (A Level): A Level Computer Science

How encryption works, symmetric and asymmetric keys, quantum key exchange, how TLS secures a connection, and how digital certificates and signatures create trust between strangers.

  • Lesson
  • 3 quizzes
  • Worksheet PDF

A step-by-step lesson, 3 self-marking quizzes and a printable worksheet, all on Security (A Level) for A Level.

Security (A Level): the short answer

Data sent over a network passes through many computers that are not under the sender's control. Anyone who can reach those links can copy it. Encryption protects the meaning of the data, not the data's journey: even if a copy is taken, it cannot be read.

Learn it: the lesson

Security (A Level): Encryption, TLS and Digital Certificates8 steps ยท one idea at a time ยท quick check at the endStart the lesson โ†’
What the lesson covers8 steps ยท tap to see
  1. 1How encryption works: plain text, cipher text and keys

    Data sent over a network passes through many computers that are not under the sender's control.

    Learn this in the lesson โ†’
  2. 2Symmetric key cryptography

    In symmetric key cryptography the same key encrypts and decrypts.

    Learn this in the lesson โ†’
  3. 3Asymmetric key cryptography: public and private keys

    Asymmetric key cryptography removes the key distribution problem with a pair of mathematically linked keys.

    Learn this in the lesson โ†’
  4. 4Using both together, and quantum cryptography

    Neither method alone is ideal, so real systems combine them.

    Learn this in the lesson โ†’
  5. 5SSL and TLS: securing a connection

    SSL (Secure Sockets Layer) and its successor TLS (Transport Layer Security) are protocols that make a client-server connection secure.

    Learn this in the lesson โ†’
  6. 6Digital certificates: what they are and how one is obtained

    Public key cryptography has a gap.

    Learn this in the lesson โ†’
  7. 7Digital signatures: authentication and trust

    A handwritten signature shows who approved a document.

    Learn this in the lesson โ†’
  8. 8Digital trust: the chain of certificates

    A certificate is only as believable as the signer.

    Learn this in the lesson โ†’
  9. Quick check: see what you remember

Security (A Level): A Level Computer Science notes

How encryption works: plain text, cipher text and keys

Data sent over a network passes through many computers that are not under the sender's control. Anyone who can reach those links can copy it. Encryption protects the meaning of the data, not the data's journey: even if a copy is taken, it cannot be read.

The vocabulary is exact and appears in exam questions:

  • Plain text is the original readable message.
  • An algorithm (the cipher) is the method of scrambling it.
  • A key is a secret value that controls the scrambling.
  • Cipher text is the scrambled result.
  • Decryption is the reverse process, back to plain text, which needs the right key.

Here is the simplest cipher. A Caesar cipher shifts each letter along the alphabet by a fixed number: the algorithm is "shift", the key is the number of places. Step through an example, noticing how Z wraps round to the start.

The Caesar cipher is useless today, and the reason teaches the main lesson. There are only 25 possible keys. An attacker tries every one, a brute force attack, and recognises the right answer because it is readable. A modern cipher has so many keys that this is impossible in any useful time. Each additional bit in the key length doubles the number of keys.

Key facts

  • Encryption protects the meaning of the data, not the data's journey: even if a copy is taken, it cannot be read.
  • Plain text is the original readable message.
  • A key is a secret value that controls the scrambling.
  • Cipher text is the scrambled result.
  • Decryption is the reverse process, back to plain text, which needs the right key.
  • An attacker tries every one, a brute force attack, and recognises the right answer because it is readable.

Security (A Level) MCQs with answers

Tap an answer to check it.

  1. What is ciphertext?

    Answer: A. Data after it has been encrypted Ciphertext is the unreadable output produced when plaintext is passed through an encryption algorithm with a key.

  2. Alice wants to send Bob a confidential message using asymmetric encryption. Which key does she use to encrypt it?

    Answer: C. Bob's public key A message is encrypted with the recipient's public key so that only Bob, who holds the matching private key, can decrypt it.

  3. After the server sends its certificate, what does the client do first in the TLS handshake?

    Answer: B. It checks that the certificate is valid and trusted The client must first verify the certificate against a trusted certificate authority before it trusts the server or sets up session keys.

  4. How many keys does symmetric encryption use?

    Answer: A. One key, used to both encrypt and decrypt Symmetric encryption uses a single shared secret key for both encryption and decryption.

More questions in the 3 quizzes below โ†“ ยท All A Level Computer Science MCQs with answers โ†’

Security (A Level): common questions

What is meant by plain text?

Plain text is the original readable message.

What is meant by key?

A key is a secret value that controls the scrambling.

What is meant by cipher text?

Cipher text is the scrambled result.

What is meant by decryption?

Decryption is the reverse process, back to plain text, which needs the right key.

What is meant by brute force attack?

An attacker tries every one, a brute force attack, and recognises the right answer because it is readable. A modern cipher has so many keys that this is impossible in any useful time.

How can I practise Security (A Level)?

Try the questions on this page, then the 3 self-marking quizzes below, which explain every answer. The worksheet gives the same practice on paper, with an answer sheet.

Practise real quizzes on this topic: 3 quizzes

Each quiz marks itself the moment it is finished and explains every answer. Start easy and work up.

๐Ÿ–จ๏ธSecurity (A Level)A printable A Level Computer Science 9618 worksheet on security: symmetric and asymmetric encryption, public and private keys, key length, TLS and SSL handshakes, digital signatures and digital certificates.See the worksheet โ†’

โฌ‡ Download free PDFFree sample copy with a light QuizByt mark. A free account gives you more.