CIE IGCSE | 2.3 Encryption

Lesson objective

Explain why data is encrypted during transmission and describe how symmetric and asymmetric encryption use keys to protect confidentiality.

Learn

2.3 | SYMMETRIC AND ASYMMETRIC ENCRYPTION

01 | WHY ENCRYPT DATA?

You send a private message over a network. Someone who intercepts the traffic should not be able to read its contents. Encryption transforms readable data into an encrypted form using an algorithm and a key.

Confidentiality means keeping information from unauthorised readers. Encryption is used to protect sensitive data during transmission, such as personal messages, account information or payment details.

Encryption does not stop someone intercepting or copying the encrypted data. Its purpose is to make the contents impractical to understand without the required key, when a suitable method is correctly used.

02 | PLAINTEXT, CIPHERTEXT AND KEYS

Plaintext can be any digital data, not only written text
TermMeaningExample role
PlaintextThe original unencrypted dataA message before encryption
Encryption algorithmThe method that transforms the dataA defined sequence of operations
KeyA value used by the algorithmDetermines the transformation
CiphertextThe encrypted dataWhat is sent over the network
DecryptionRecovering the original data using the appropriate method and keyThe receiver restores the message
PLAINTEXTEncryption + key →CIPHERTEXTDecryption + key →PLAINTEXT

The algorithm and key have different roles. Knowing how the algorithm works should not, by itself, reveal the message without the necessary secret key. A key is not necessarily a human-readable password.

03 | SYMMETRIC: THE SAME SECRET KEY

Symmetric encryption uses the same secret key to encrypt and decrypt the data. The sender and receiver must both have that key.

  1. Alice and Bob obtain the same secret key through a secure arrangement.
  2. Alice encrypts her plaintext using that key.
  3. Alice sends the ciphertext to Bob.
  4. Bob decrypts it using the same key.

The ciphertext can cross an untrusted network. The key must remain secret. Sending the key openly beside the ciphertext would let an interceptor try to decrypt the message.

Symmetric encryption is generally efficient for large amounts of data. Its main practical difficulty is securely sharing and managing the secret key. If that key is exposed, messages protected with it can lose confidentiality.

04 | A SHIFT CIPHER: A SIMPLE SHARED-KEY MODEL

To see what a key does, move each letter three places forward in the alphabet. The key is the shift amount, 3.

A classroom model of using the same key in both operations
OperationInputKeyOutput
EncryptCAFEShift forward 3FDIH
DecryptFDIHShift backward 3CAFE

After Z, wrap around to A. Decryption reverses the transformation using the same shift amount.

This is not secure modern encryption. There are only 26 shifts to try, and letter patterns reveal information. The example teaches plaintext, ciphertext and keys, not a method for protecting real personal data.

05 | TRY IT: ENCRYPT AND DECRYPT

Only A–Z letters change; lowercase letters are first converted to uppercase. Spaces, digits and punctuation are retained. Encrypt a message, then paste the result back and decrypt with the same key.

06 | ASYMMETRIC: TWO RELATED KEYS

Asymmetric encryption uses a mathematically related pair of keys: a public key and a private key. They have different roles.

For confidential delivery, use the receiver’s public key
KeyWho may have it?Role when sending a confidential message to Bob
Bob’s public keyCan be shared openlyAlice uses it to encrypt for Bob
Bob’s private keyBob keeps it secretBob uses it to decrypt

Bob can publish his public key without publishing his private key. With a suitable algorithm and key size, deriving the private key from the public key should be computationally impractical.

The two keys are not identical. Someone who only has Bob’s public key should not be able to decrypt ciphertext encrypted for Bob.

07 | SEND TO THE RIGHT PERSON

  1. Bob generates a public/private key pair and keeps his private key secret.
  2. Alice obtains and verifies Bob’s public key.
  3. Alice encrypts the message using Bob’s public key.
  4. Alice sends the ciphertext to Bob.
  5. Bob decrypts it using Bob’s private key.

The key pair belongs to the receiver in this example. Alice does not use her own public key to make a message readable only by Bob.

If Bob sends a confidential reply to Alice using asymmetric encryption, he uses Alice’s verified public key, and she decrypts with her private key.

Verifying the public key matters. If an attacker substitutes their own key while pretending it is Bob’s, Alice could encrypt for the attacker. Public availability alone does not establish ownership.

08 | COMPARE THE METHODS

Performance and practical use depend on the system and algorithm
FeatureSymmetricAsymmetric
KeysOne shared secret keyA public/private key pair
Encryption for a receiverShared secret keyReceiver’s public key
DecryptionSame shared secret keyReceiver’s private key
What remains secret?Shared keyPrivate key
Key distributionShared key needs a secure arrangementPublic key can be distributed, but ownership must be verified
Typical performanceEfficient for bulk dataGenerally more computationally demanding for comparable security
Useful roleProtecting large data transfersSupporting secure establishment of communication and small confidential exchanges

Do not say asymmetric encryption is always “more secure”. Security depends on the algorithm, key size, implementation, key protection and correct use.

09 | WHY SYSTEMS OFTEN COMBINE THEM

A secure connection can use asymmetric techniques to establish or protect session keys, then symmetric encryption to protect the main data transfer. This combines useful key-establishment properties with efficient bulk encryption.

That is an extension of the core syllabus distinction. Modern protocols can use key agreement rather than simply sending a symmetric key encrypted with a public key. You do not need to assume one exact handshake for every secure connection.

The shared session key is still secret. Asymmetric techniques do not make it acceptable to publish the key protecting the main data.

10 | WHAT ENCRYPTION DOES NOT PROVE

Encryption protects confidentiality. Encryption alone does not necessarily prove who sent the message, detect every alteration or guarantee delivery. Secure systems use additional mechanisms for authentication, integrity and reliable transmission.

Do not confuse encryption with compression or hashing. Compression reduces size; a hash produces a value used for purposes such as comparison and is not decrypted back into the original message.

Digital signatures are also a separate use of asymmetric cryptography. Do not describe confidential encryption as “encrypt with your private key so everyone can read it with your public key”.

Once the receiver decrypts the data, it must still be protected on that device. Encryption in transit does not automatically protect an unlocked screen or an exposed private key.

11 | COMMON MISTAKES

  • Calling ciphertext the original: plaintext is unencrypted; ciphertext is encrypted.
  • Sharing the symmetric key openly: an interceptor could decrypt the data.
  • Keeping the public key secret but publishing the private key: the private key must remain secret.
  • Using the sender’s public key for delivery: encrypt for the receiver with the receiver’s verified public key.
  • Saying public-key encryption proves identity: ownership of the key must be established.
  • Calling a shift cipher secure: it is only a teaching model.

MATCH THE ENCRYPTION TERM

Terminology

Terminology

Encryption

Transforming plaintext into ciphertext using an algorithm and a key.

Decryption

Recovering the original data from ciphertext using the appropriate algorithm and key.

Plaintext

Original unencrypted data.

Ciphertext

Data in its encrypted form.

Encryption key

A value used by the algorithm to determine the transformation.

Symmetric encryption

Encryption using the same shared secret key for encryption and decryption.

Asymmetric encryption

Encryption using a mathematically related public/private key pair.

Public key

A key that may be distributed openly; used to encrypt a confidential message for its owner.

Private key

The secret key used by the intended receiver to decrypt in the public-key encryption model.

Confidentiality

Keeping information from unauthorised readers.

Key distribution

Making the required keys available to the appropriate participants securely.

Session key

A secret key established for protecting data in a communication session.

Questions

Questions

CHECK YOUR UNDERSTANDING

Select all correct choices. Each exact set earns one point.

1. What is the main purpose of encryption during transmission?
2. Which statements describe symmetric encryption?
3. Alice sends a confidential message to Bob using asymmetric encryption. Which keys are used?
4. Which may Bob share openly?
5. Which statements are correct?
6. Why can sharing a symmetric key openly defeat confidentiality?
7. Which statements about the shift-cipher activity are correct?
8. Which are sensible cautions?

EXPLAIN AND COMPARE

Write your answers before revealing each sample.

1. Explain why encryption is used when transmitting personal data.

2. Describe the process of symmetric encryption.

3. Describe how Alice sends a confidential message to Bob using asymmetric encryption.

4. Explain the key-distribution difference between symmetric and asymmetric encryption.

5. Explain why a system might use both methods.

6. A student says encryption prevents a message being intercepted. Correct the statement.

KEY CHOICE | THE RETURN MESSAGE

Bob now sends a confidential reply to Alice using asymmetric encryption. Whose public key encrypts it? Whose private key decrypts it?

Reveal suggested answer

Bob encrypts using Alice’s verified public key. Alice decrypts using her own private key. The key pair used for confidential delivery belongs to the intended receiver.

Flashcards

Flashcards

Click to flip. Select the ideas you need to revisit.

0 cards selected for revision.

    Selections are kept while this page is open.

    Workbook

    Workbook

    COMING SOON

    The workbook for 2.3 Symmetric and Asymmetric Encryption is coming soon. Complete the key-choice tasks and written questions in your exercise book.