CS

Security

Understanding encryption, digital certificates, and secure communication protocols

Learning Objectives

By the end of this lesson, you will be able to:

  • Show understanding of how encryption works including use of public key, private key, plain text, cipher text
  • Explain symmetric key cryptography and asymmetric key cryptography
  • Describe how keys can be used to send private messages and verified messages
  • Show understanding of quantum cryptography including its purpose, benefits and drawbacks
  • Explain the purpose and use of SSL/TLS in client-server communication
  • Show understanding of digital certificates and how they are acquired and used to produce digital signatures
  • Identify situations where use of SSL/TLS would be appropriate

Key Terms

Encryption

The process of converting readable text (plaintext) into an unreadable form (ciphertext) to protect data during transmission.

Plaintext & Ciphertext

Plaintext: Original readable data. Ciphertext: Encrypted unreadable data.

Symmetric Encryption

Uses the same secret key for both encryption and decryption. Faster but has key distribution problems.

Asymmetric Encryption

Uses a pair of keys: public key (shared) and private key (secret). Solves key distribution problem.

Public Key & Private Key

Public Key: Available to everyone for encryption. Private Key: Kept secret by owner for decryption.

Quantum Cryptography

Uses principles of quantum mechanics (photons) to create virtually unbreakable encryption systems.

Digital Signature

A digital code that validates the authenticity and integrity of a digital document or message.

Digital Certificate

An electronic document issued by a Certificate Authority (CA) that verifies the identity of a person or website.

SSL/TLS

Secure Sockets Layer / Transport Layer Security - cryptographic protocols that provide secure communication over networks.

Hash Function

A one-way function that creates a unique fixed-size digest from input data, used in digital signatures.

1. Introduction to Encryption

When data is transmitted over any public network, there is a risk of it being intercepted by hackers (eavesdroppers). Encryption helps to minimise this risk by altering data into a form that is unreadable by anyone except the intended recipient.

How Encryption Protects Data

Plaintext
"Hello Alice!"
Encryption
Using Secret Key
Ciphertext
"K5#9pL@2mN!"
Transmission
Over Internet
Decryption
Using Secret Key
Plaintext
"Hello Alice!"
Even if intercepted, ciphertext is meaningless without the decryption key

Security Concerns During Data Transmission

Confidentiality

Only the intended recipient should be able to read the data.

Achieved by: Encryption, Public/Private Keys

Authenticity

Verify who sent the data and that the source is legitimate.

Achieved by: Digital Signatures

Integrity

Data should reach its destination without any changes.

Achieved by: Digital Signature / Message Digest

Non-Repudiation

Neither sender nor recipient can deny their involvement in the transmission.

Achieved by: Digital Certificates

Real-life Example: Online Banking

When you log into your bank account online:

  • Confidentiality: Your password and account details are encrypted so hackers can't read them
  • Authenticity: The bank's website uses a digital certificate to prove it's really your bank (not a fake site)
  • Integrity: When you transfer money, the transaction details can't be altered during transmission
  • Non-repudiation: Both you and the bank have proof that the transaction occurred

Activity 1: Security Scenario Analysis

Read each scenario and identify which security concern is most relevant:

1. A student changes their exam grade in the school database
2. Someone pretends to be your bank and asks for your password
3. Your private messages are read by a classmate
4. A student denies sending a bullying message

Answers: 1. Integrity, 2. Authenticity, 3. Confidentiality, 4. Non-repudiation

Activity 2: Simple Caesar Cipher

Encrypt the word "HELLO" using a Caesar cipher with shift of 3 (A→D, B→E, etc.):

Ciphertext: KHOOR

This is a simple form of symmetric encryption using a shift key

Check Your Understanding

Answer
  • [1 mark] To convert readable data (plaintext) into unreadable form (ciphertext)
  • [1 mark] To protect data from being understood by unauthorized parties if intercepted during transmission
Answer
  • [1 mark] Plaintext is the original, readable form of data before encryption
  • [1 mark] Ciphertext is the encrypted, unreadable form of data after encryption
Answer
  • [1 mark] Integrity means that data should reach its destination without any changes or alterations
  • [1 mark] It ensures that the data received is exactly the same as the data that was sent
Answer
  • [2 marks] Online banking transactions - where neither the bank nor the customer should be able to deny that a transaction took place
  • [Alternative] Legal contracts signed electronically - where both parties need proof of agreement
Answer
  • [1 mark] Sensitive data (like passwords, financial information, medical records) could cause harm if accessed by unauthorized people
  • [1 mark] Encryption ensures that even if data is intercepted, it cannot be understood without the decryption key

2. Symmetric Encryption

Symmetric encryption uses a single secret key for both encryption and decryption. Both the sender and receiver must have the same key. While fast and efficient, it has a key distribution problem - how to securely share the key without it being intercepted.

Symmetric Encryption Flow

SAME KEY USED FOR BOTH
Sender
Has Secret Key
Encrypt
With Secret Key
Transmit
Ciphertext
Receiver
Has Same Secret Key
Decrypt
With Same Key

Key Distribution Problem: How to securely share the secret key without it being intercepted?

Example: 10-Digit Symmetric Key

Using key 4 2 9 1 3 6 2 8 5 6 to encrypt "computer science is exciting":

Key C O M P U T E R
Shift 4 2 9 1 3 6 2 8
Cipher G Q V Q X Z G Z

Each letter is shifted by the corresponding digit in the key. C (+4) = G, O (+2) = Q, etc.

Real-life Example: Wi-Fi Encryption (WPA2)

When you connect to a password-protected Wi-Fi network:

  • Your device and router use the same pre-shared key (your Wi-Fi password)
  • All data between your device and router is encrypted with this key
  • This is symmetric encryption - same key for encryption and decryption
  • Problem: If someone steals your Wi-Fi password, they can decrypt all traffic

Activity 1: Key Distribution Problem

Alice wants to send Bob a secret message using symmetric encryption. They've never met before. How can Alice securely give Bob the secret key?

Send it by email (they both have email accounts)
Meet in person and exchange the key
Post it in a public forum
Use asymmetric encryption first to send the symmetric key

Best solutions: 2. Meet in person (most secure) or 4. Use asymmetric encryption first (practical for online communication).

Email could be intercepted, and posting publicly defeats the purpose of encryption.

Activity 2: Security Level Comparison

Compare the security level of these symmetric encryption scenarios:

AES-256 (bank-grade encryption)

Weak
Strong

Caesar cipher (shift by 3)

Weak
Strong

DES (56-bit key, outdated)

Weak
Strong
Longer keys generally mean stronger encryption, but the algorithm also matters

Check Your Understanding

Answer
  • [1 mark] It uses the same secret key for both encryption and decryption
  • [1 mark] Both sender and receiver must possess the same key
Answer
  • [1 mark] Both sender and receiver need the same secret key
  • [1 mark] The key must be shared securely before communication can begin
  • [1 mark] If the key is intercepted during sharing, the encryption is compromised
Answer
  • [1 mark each] H (+3) = K, E (+1) = F, L (+4) = P, L (+1) = M, O (+5) = T
  • [Full answer] Ciphertext: KFPMT
Answer
  • [1 mark] Advantage: Faster than asymmetric encryption (uses simpler algorithms)
  • [1 mark] Disadvantage: Key distribution problem - how to securely share the secret key
Answer
  • [1 mark] Only one user needs access (no key distribution problem)
  • [1 mark] It's faster than asymmetric encryption for large files

3. Asymmetric Encryption

Asymmetric encryption uses two different but mathematically related keys: a public key (shared with everyone) and a private key (kept secret by the owner). This solves the key distribution problem of symmetric encryption.

Asymmetric Encryption Flow

PUBLIC KEY
PRIVATE KEY
Sender
Gets Receiver's Public Key
Encrypt
With Receiver's Public Key
Transmit
Ciphertext
Receiver
Uses Own Private Key
Decrypt
With Private Key

No key distribution problem: Public keys can be freely shared; only private keys must be kept secret.

Example: Tom Sending to Meera

  1. Tom and Meera both generate their own public-private key pairs
  2. Meera sends her public key to Tom (can be sent openly)
  3. Tom encrypts the document using Meera's public key
  4. Tom sends the encrypted document to Meera
  5. Meera decrypts it using her private key (only she has this)

Even if someone intercepts the encrypted document and Meera's public key, they cannot decrypt it without her private key.

Public Key Features Private Key Features
Known to everyone Only known to the owner
Used to encrypt data for the owner Used to decrypt data encrypted with matching public key
Can be distributed via digital certificates Never shared with anyone
Anyone can use it to send encrypted messages Used to create digital signatures (prove identity)

Real-life Example: Secure Email (PGP/GPG)

When you send a secure email using PGP:

  • You look up the recipient's public key from a key server
  • Encrypt the email using their public key
  • Send the encrypted email (only the recipient can decrypt it with their private key)
  • You can also sign the email with your private key to prove it's from you

Activity 1: Key Pair Matching

Match each action with whether it uses a public key or private key:

Encrypt a message for Alice
Decrypt a message from Bob
Sign a document to prove it's from you
Verify a signature from Charlie

Answers:

  • Encrypt for Alice: Alice's Public Key
  • Decrypt from Bob: Your Private Key
  • Sign a document: Your Private Key
  • Verify Charlie's signature: Charlie's Public Key

Activity 2: Symmetric vs Asymmetric Comparison

Complete the comparison table:

Feature Symmetric Asymmetric
Number of keys 1 2
Key distribution Problematic Easy (public keys)
Speed Fast Slow
Best for Large data/files Key exchange/signing
In practice, both are often used together: asymmetric for key exchange, symmetric for bulk data

Check Your Understanding

Answer
  • [1 mark] Public key: Shared with everyone, used to encrypt messages for the owner
  • [1 mark] Private key: Kept secret by the owner, used to decrypt messages
  • [1 mark] They are mathematically related but one cannot be derived from the other
Answer
  • [1 mark] Public keys can be freely shared without security risk
  • [1 mark] Only private keys need to be kept secret, and they never need to be shared
  • [1 mark] Anyone can encrypt using the public key, but only the private key owner can decrypt
Answer
  • [1 mark] Alice uses Bob's public key to encrypt the message
  • [1 mark] Only Bob can decrypt it using his private key
Answer
  • [1 mark] Advantage: Solves key distribution problem (public keys can be shared openly)
  • [1 mark] Disadvantage: Slower than symmetric encryption due to complex mathematics
Answer
  • [1 mark] Asymmetric encryption uses mathematically related but different keys for encryption and decryption
  • [1 mark] The private key (needed for decryption) cannot be derived from the public key

4. Quantum Cryptography

Quantum cryptography uses principles of quantum mechanics (especially properties of photons) to create virtually unbreakable encryption. Unlike classical cryptography based on mathematical algorithms, quantum cryptography leverages the behavior of quantum particles.

Quantum Key Distribution (QKD)

= 1
= 0
= 1
= 0

Four polarizations represent bits: Vertical (↑) = 1, Horizontal (↔) = 0, Diagonal right (↗) = 1, Diagonal left (↖) = 0

Quantum advantage: Any attempt to measure a photon changes its state, immediately revealing eavesdropping.

Quantum Key Distribution Process

  1. Sender generates photons with random polarizations representing random bits
  2. Photons travel through fiber optic cable to receiver
  3. Receiver uses random beam splitters to measure photons
  4. Receiver tells sender which beam splitters were used
  5. Sender reveals which measurements were correct
  6. Both keep only the correctly measured bits as their shared secret key
  7. Any eavesdropping attempt changes photon states, revealing intrusion
Advantages of Quantum Cryptography Drawbacks of Quantum Cryptography
Virtually unbreakable (based on physics, not mathematics) Requires dedicated fiber optic lines
Detects eavesdropping (any measurement changes photons) Expensive specialist hardware required
Allows longer/more secure keys to be exchanged Limited range (~250 km currently)
Future-proof against quantum computers Polarization can be altered during transmission
Guarantees key integrity (cannot be copied undetected) Can be used by criminals to hide activities

Real-life Example: Government & Military Communication

Quantum cryptography is primarily used for:

  • Securing communications between government agencies
  • Protecting military command and control systems
  • Securing financial transactions between central banks
  • Protecting critical infrastructure (power grids, water systems)

It's not used for everyday communication due to cost and infrastructure requirements.

Activity 1: Eavesdropping Detection

In quantum cryptography, why does eavesdropping change the photons?

The eavesdropper's equipment is too hot
Quantum mechanics says measuring a photon changes its state
The fiber optic cable gets damaged
Photons naturally decay over distance

Correct answer: Quantum mechanics says measuring a photon changes its state (Heisenberg's uncertainty principle).

This is a fundamental principle of quantum physics that makes quantum cryptography uniquely secure.

Activity 2: Technology Timeline

Place these encryption technologies in order from oldest to newest:

Quantum Cryptography
Caesar Cipher
RSA (Asymmetric Encryption)
DES (Symmetric Encryption)

Correct order:

  1. Caesar Cipher (Ancient Rome)
  2. DES (1970s)
  3. RSA (1977)
  4. Quantum Cryptography (1980s-present)

Check Your Understanding

Answer
  • [1 mark] Classical cryptography relies on mathematical algorithms
  • [1 mark] Quantum cryptography uses principles of quantum mechanics (properties of photons)
Answer
  • [1 mark] It uses photons to transmit encryption keys
  • [1 mark] According to quantum mechanics, measuring a photon changes its state
  • [1 mark] Any eavesdropping attempt alters the photons, which can be detected by sender and receiver
Answer
  • [1 mark each] Any two from:
    • Requires dedicated fiber optic lines
    • Expensive specialist hardware
    • Limited range (~250 km)
    • Polarization can be altered during transmission
    • Can be used by criminals
Answer
  • [1 mark] A method of exchanging encryption keys using quantum particles (photons)
  • [1 mark] Provides a secure way to share keys that detects any eavesdropping attempts
Answer
  • [1 mark] It's based on laws of physics, not mathematical problems that could be solved by future computers
  • [1 mark] It remains secure even against quantum computers that could break classical encryption

5. Digital Signatures & Certificates

Digital signatures validate the authenticity and integrity of digital documents. Digital certificates are electronic documents issued by trusted Certificate Authorities (CAs) that verify the identity of a person or website.

How Digital Signatures Work

1. Create Digest
Apply hash function to message
2. Encrypt Digest
With sender's private key
3. Send
Message + encrypted digest (signature)
4. Verify
Decrypt signature with sender's public key
5. Compare
Hash received message; compare digests
6. Authenticate
If digests match: authentic & unchanged

Key point: Only the sender's private key could create that signature, and any change to the message changes the hash.

How to Get a Digital Certificate

  1. Person generates a public-private key pair on their computer
  2. Person applies to Certificate Authority (CA) with their public key and identity proof
  3. CA verifies the person's identity (name, address, organization)
  4. CA creates a digital certificate containing the person's public key and signs it with CA's private key
  5. CA issues the certificate to the person
  6. Person can now share their certificate; anyone can verify it using CA's public key

Data Items in a Digital Certificate

  • Version number
  • Certificate serial number
  • Name of issuing CA
  • Subject name (owner)
  • Subject's public key
  • Hashing algorithm used
  • Validity period (start/expiry dates)
  • Digital signature of CA
  • Extensions (optional)

Real-life Example: HTTPS Websites

When you visit a secure website (https://):

  • The website sends its digital certificate to your browser
  • Your browser checks if the certificate was issued by a trusted CA
  • It verifies the certificate's digital signature using the CA's public key
  • If valid, your browser shows a padlock icon ✅
  • All communication is then encrypted using keys from the certificate

This proves you're really connected to your bank (not a fake site) and ensures encrypted communication.

Activity 1: Hash Function Demonstration

See how changing one character completely changes the hash:

Message: "Hello Alice"
Hash (simplified): H3ll0@l1c3
Message: "Hello Alice!"
Hash (simplified): X9pL@2mN#5
Message: "hello Alice" (lowercase h)
Hash (simplified): qW3rT7yU!2
Even tiny changes create completely different hashes - this is called the avalanche effect

Activity 2: Signature vs Certificate

Identify whether each statement describes a digital signature or digital certificate:

Obtained from a Certificate Authority
Created for each individual message
Contains the owner's public key
Uses the sender's private key for creation

Answers:

  • Certificate: Obtained from a Certificate Authority, Contains the owner's public key
  • Signature: Created for each individual message, Uses the sender's private key for creation

Check Your Understanding

Answer
  • [1 mark] To validate the authenticity of a digital document (prove who sent it)
  • [1 mark] To ensure the integrity of the document (prove it hasn't been altered)
Answer
  1. [1 mark] Apply a hash function to the message to create a digest
  2. [1 mark] Encrypt the digest using the sender's private key
  3. [1 mark] This encrypted digest is the digital signature
  4. [1 mark] Send the message along with the digital signature
Answer
  • [1 mark] A trusted third-party organization that issues digital certificates
  • [1 mark] Verifies the identity of individuals or organizations requesting certificates
  • [1 mark] Signs certificates with its own private key, allowing anyone to verify them using the CA's public key
Answer
  • [1 mark] Digital certificates provide a trusted way to distribute public keys
  • [1 mark] Without certificates, someone could create a fake public key pretending to be someone else
Answer
  • [1 mark] The hash of the altered message will be different from the original hash
  • [1 mark] When the recipient verifies the signature, the hashes won't match, revealing the alteration

6. SSL/TLS Protocols

SSL (Secure Sockets Layer) and TLS (Transport Layer Security) are cryptographic protocols that provide secure communication over networks. They ensure encryption, authentication, and data integrity between clients and servers, most commonly seen as HTTPS in web browsers.

SSL/TLS Handshake Process

1. Client Hello
Browser connects to secure website
2. Server Hello + Certificate
Server sends its digital certificate
3. Certificate Verification
Browser checks certificate with CA
4. Key Exchange
Browser generates session key, encrypts with server's public key
5. Secure Session Established
All further communication encrypted

You see https:// and a padlock icon when this process succeeds

SSL (Secure Sockets Layer) TLS (Transport Layer Security)
Older protocol (1990s) Newer, more secure version (successor to SSL)
All versions now considered insecure Current standard for secure web communication
Fixed protocol design Can be extended with new authentication methods
Less efficient handshake process Uses session caching for better performance
Combined handshake and record layers Separates handshake protocol from record protocol

Purpose of TLS Protocol

  • Provide secure communication over networks/internet
  • Maintain data integrity (prevent alteration during transmission)
  • Provide authentication of servers (and optionally clients)
  • Protect against eavesdropping and man-in-the-middle attacks
  • Enable encryption of sensitive data (passwords, credit cards)

Real-life Example: Online Shopping

When you buy something online:

  • You go to https://www.store.com (not http://)
  • Your browser performs TLS handshake with the store's server
  • You see a padlock icon ✅ next to the URL
  • You enter your credit card details - they're encrypted before sending
  • Even if intercepted, the data is unreadable without the session key
  • The certificate proves you're really on the store's site (not a phishing site)
Application Why SSL/TLS is Used
Online banking Protects account details, transactions
Email (IMAP/SMTP over SSL) Encrypts email content and passwords
VPN connections Secures entire network connection
Cloud storage Protects files during upload/download
Social media login Encrypts passwords and private messages
API communications Secures data exchange between applications

Activity 1: Browser Security Check

Visit these websites (or imagine visiting) and identify which use SSL/TLS:

http://www.oldsite.com
https://onlinebanking.bank.com
http://localhost:8080 (local development)
https://docs.google.com

Using SSL/TLS: https://onlinebanking.bank.com, https://docs.google.com

http:// URLs don't use SSL/TLS. Localhost often doesn't have certificates installed.

Activity 2: Security Requirement Matching

Match each scenario with the most important security feature:

Online exam submission
Sending medical test results
Signing a digital contract
Bank website login

Answers:

  • Online exam: Integrity (ensuring answers aren't changed)
  • Medical results: Confidentiality (private health information)
  • Digital contract: Non-repudiation (can't deny signing)
  • Bank login: All of the above (need all security features)

Check Your Understanding

Answer
  • [1 mark] To provide secure communication over networks/internet
  • [1 mark] To ensure encryption, authentication, and data integrity
Answer
  • [1 mark] The URL begins with https:// instead of http://
  • [1 mark] A padlock icon appears in the browser's address bar
Answer
  • [1 mark] TLS is the newer, more secure successor to SSL
  • [1 mark] All SSL versions are now considered insecure and deprecated
  • [1 mark] TLS has improvements like session caching and separable protocol layers
Answer
  • [1 mark] It authenticates the website (proves it's legitimate, not a fake site)
  • [1 mark] It contains the website's public key for encryption
  • [1 mark] It's issued by a trusted CA, allowing the browser to verify it
Answer
  • [1 mark each] Any three from:
    • Online banking and financial transactions
    • E-commerce and online shopping
    • Email communication
    • Social media logins
    • Cloud storage access
    • VPN connections
    • Corporate intranets/extranets

Key Takeaways

  • Encryption converts plaintext to ciphertext to protect data confidentiality during transmission over public networks
  • Symmetric encryption uses one shared secret key for both encryption and decryption, making it fast but creating a key distribution problem
  • Asymmetric encryption uses public/private key pairs - public keys can be freely shared while private keys remain secret, solving the key distribution problem
  • Quantum cryptography uses quantum mechanics (photons) to create virtually unbreakable encryption that detects any eavesdropping attempts
  • Digital signatures prove authenticity and integrity - created by encrypting a message hash with the sender's private key
  • Digital certificates are issued by trusted Certificate Authorities and verify the identity of individuals or websites while distributing public keys securely
  • SSL/TLS protocols provide secure web communication through encryption, authentication, and data integrity protection (seen as https://)
  • Security involves four key concerns: Confidentiality (only intended recipient can read), Authenticity (verify sender), Integrity (data unchanged), and Non-repudiation (cannot deny involvement)
  • Classical vs quantum cryptography: Classical relies on mathematical algorithms; quantum uses physics principles and is future-proof against quantum computers
  • In practice, systems often combine methods: Asymmetric for key exchange and signatures, symmetric for bulk data encryption
  • Always look for https:// and padlock icons when transmitting sensitive information online to ensure SSL/TLS protection

Question Bank

Marking Scheme & Answer
Symmetric Encryption:
  • [1 mark] Uses the same key for encryption and decryption
  • [1 mark] Both sender and receiver must have the same secret key
  • [1 mark] Advantage: Faster than asymmetric encryption
Asymmetric Encryption:
  • [1 mark] Uses a pair of keys: public and private
  • [1 mark] Public key encrypts, private key decrypts (or vice versa)
  • [1 mark] Advantage: Solves key distribution problem (public keys can be shared openly)
Marking Scheme & Answer
Creation:
  1. [1 mark] Apply hash function to message to create digest
  2. [1 mark] Encrypt digest with sender's private key
  3. [1 mark] This encrypted digest is the digital signature
Verification:
  1. [1 mark] Decrypt signature with sender's public key to get original digest
  2. [1 mark] Apply same hash function to received message to create new digest
  3. [1 mark] Compare two digests - if identical, signature is valid
Marking Scheme & Answer
  • [1 mark] Purpose: To create virtually unbreakable encryption using quantum mechanics
  • [1 mark] Uses photons with specific polarizations to represent bits
  • [1 mark] Based on Heisenberg's uncertainty principle: measuring a quantum particle changes its state
  • [1 mark] Any eavesdropping attempt requires measuring the photons
  • [1 mark] This measurement alters the photon states, which can be detected by sender and receiver
Marking Scheme & Answer
  • [1 mark] A digital certificate is an electronic document issued by a Certificate Authority (CA)
  • [1 mark] It contains the owner's public key and identity information
  • [1 mark] It's digitally signed by the CA to verify its authenticity
  • [1 mark] Necessary because without certificates, someone could create a fake public key pretending to be someone else
  • [Additional] Provides a trusted way to distribute public keys and verify identities
Marking Scheme & Answer
  1. [1 mark] Client (browser) sends "Client Hello" to server
  2. [1 mark] Server responds with "Server Hello" and sends its digital certificate
  3. [1 mark] Browser verifies certificate with Certificate Authority
  4. [1 mark] Browser generates a session key (symmetric key)
  5. [1 mark] Browser encrypts session key with server's public key (from certificate) and sends it
  6. [1 mark] Server decrypts session key with its private key, secure session established
Marking Scheme & Answer
Classical Cryptography:
  • Based on mathematical algorithms
  • Security depends on computational difficulty
  • Can be broken by powerful computers/quantum computers
  • Uses traditional communication channels
  • Doesn't detect eavesdropping
Quantum Cryptography:
  • Based on quantum mechanics (physics)
  • Security based on laws of physics
  • Virtually unbreakable, even by quantum computers
  • Requires dedicated fiber optic lines
  • Detects any eavesdropping attempts
Marking Scheme & Answer
Confidentiality:
  • [1 mark] Only intended recipient can read the data
  • [1 mark] Example: Encrypted email that only recipient can decrypt
Authenticity:
  • [1 mark] Verify who sent the data
  • [1 mark] Example: Digital signature proving email came from claimed sender
Integrity:
  • [1 mark] Data reaches destination unchanged
  • [1 mark] Example: Bank transfer amount cannot be altered in transit
Non-repudiation:
  • [1 mark] Neither party can deny involvement
  • [1 mark] Example: Digitally signed contract that both parties must acknowledge
Marking Scheme & Answer
  • [1 mark] Asymmetric encryption uses complex mathematical operations (like prime factorization)
  • [1 mark] Symmetric encryption uses simpler operations (like bit shifting or XOR)
  • [1 mark] Systems overcome this by using hybrid approach
  • [1 mark] Asymmetric encryption establishes a session key, then symmetric encryption encrypts the actual data
  • [Additional] Example: SSL/TLS uses asymmetric for handshake, symmetric for data transfer
Marking Scheme & Answer
  • [1 mark] Requires dedicated fiber optic lines (cannot use existing internet infrastructure)
  • [1 mark] Expensive specialist hardware needed
  • [1 mark] Limited range (currently about 250 km maximum)
  • [1 mark] Photon polarization can be altered during transmission, causing errors
  • [Additional] Primarily used for military/government due to cost, not everyday communication
Marking Scheme & Answer
  • [1 mark] Scenario: Online banking login and transactions
  • [1 mark] SSL/TLS provides: Encryption of account details/passwords, Authentication of bank website, Data integrity for transaction amounts
  • [1 mark] Without SSL/TLS: Data sent in plaintext over internet
  • [1 mark] Consequences: Hackers could intercept passwords and account details
  • [1 mark] Additional risk: Users could be directed to fake banking sites (phishing)
  • [Additional] Real example: Man-in-the-middle attacks could steal funds or identity information