Library › Computer Science 9618 › Security
AS Level · Computer Science 9618

Security

Revise Security for Computer Science 9618 (AS Level) — revision notes and instant AI marking.

📖 Revision notes · preview
  Cambridge International AS & A Level Computer Science (9618)

Security

The big idea: Encryption keeps data secret, key pairs prove who sent it, and certificates prove that a public key really belongs to who it claims to. TLS puts all three together every time a browser shows a padlock.

Summary — What This Chapter Covers
  • Plain text is encrypted with a key into cipher text; decryption reverses it.
  • Symmetric encryption uses one shared secret key; it is fast but the key must be distributed safely.
  • Asymmetric encryption uses a key pair: a public key anyone may have and a private key kept secret. Data encrypted with one key can only be decrypted with the other.
  • Private message to a person: encrypt with the recipient's public key. Verified message from an organisation: sign with the organisation's private key.
  • Quantum cryptography uses photons to distribute keys so that any eavesdropping is detected.
  • SSL/TLS secures client–server communication: certificates for authentication, asymmetric encryption to agree a session key, symmetric encryption for the data.
  • A digital certificate, issued by a Certificate Authority, binds a public key to its owner; it is used to verify digital signatures.
1. How Encryption Works
17.1

Symmetric and asymmetric cryptography

Plain text is the original readable data. An encryption algorithm and a key turn it into cipher text, which is meaningless to anyone without the right key. Encryption does not stop data being intercepted; it stops intercepted data being understood.

Symmetric key cryptographyAsymmetric key cryptography
Keysone secret key, used to encrypt and to decrypta mathematically linked pair: a public key and a private key
Howsender and receiver must both have the same keywhat one key of the pair encrypts, only the other key can decrypt; the private key cannot be worked out from the public key
Strengthfast; suitable for large amounts of datano secret needs to be shared in advance; supports digital signatures
Weaknessthe key has to be sent to the receiver, and could be intercepted on the waymuch slower; keys are long
Sending a private message from the public to an individual or organisation

The sender obtains the recipient's public key (it can be published) and encrypts the message with it. Only the recipient's private key can decrypt it, and only the recipient has that key, so nobody else can read the message, even someone who has the public key.

Sending a verified message to the public

The organisation encrypts (signs) with its own private key. Anyone can decrypt it with the organisation's public key. The message is not secret, but if the public key decrypts it, it can only have come from the holder of the private key, so its origin is verified. In practice only a hash of the message is signed: this is a digital signature (see below).

Worked Example
Amira wants to send her bank an account number that nobody else can read. The bank also wants to send all customers a notice that they can be sure came from the bank. Which key is used in each case?
2. Quantum Cryptography
17.1

Purpose, benefits, drawbacks

Quantum cryptography

BenefitsDrawbacks
any eavesdropping on the key exchange is detectedneeds expensive dedicated hardware and fibre-optic links
Practice Question
3. SSL/TLS
17.1

Securing client–server communication

🔓 Read the full Security note → You're seeing the preview · sign in to read it all
Also in the full note
  • Acquiring a certificate, signing a message
What's inside
📖 Revision notes 🎯 Learn mode ✦ AI flashcards ✓ Instant AI marking 🧊 3D explorers 🧪 Experiments & simulations 📈 Progress tracking
📄 Practise Security with Computer Science 9618 past papers Every paper with its mark scheme — answer online, marked instantly. Open →

Read the full Security notes free

That's the preview — create a free account to read the rest, plus flashcards and practice questions with instant AI marking. No credit card.

Unlock the full notes free →

More Computer Science topics