Unable to open this exercise
Encryption transforms readable plaintext into ciphertext using an algorithm and a key. Decryption recovers the plaintext using the appropriate key. Encryption protects confidentiality; it does not by itself prove a sender is honest or prevent deletion of data.
Symmetric encryption
The sender and receiver use the same secret key to encrypt and decrypt. It is efficient for large amounts of data. The difficulty is securely sharing and protecting the secret key: anyone who obtains it can decrypt the messages.
Asymmetric encryption
A related public/private key pair is used. For confidentiality, a sender encrypts with the recipient's public key; the recipient decrypts with their private key. The public key may be shared, while the private key must be kept secret. The sender must establish that the public key really belongs to the intended recipient, for example using a trusted certificate.
Worked example
Mina wants to send confidential data to Leo. Leo shares his public key. Mina uses Leo's public key to encrypt the data and Leo uses his private key to decrypt it. Mina's public key would not solve this task. Asymmetric methods are generally more computationally expensive than symmetric encryption.
HTTPS uses authenticated key establishment followed by symmetric encryption of the connection. Details differ between protocol versions; do not memorise one historical handshake as universal. Digital signatures provide authentication/integrity through a different operation; they are not a way of keeping a message secret by encrypting it with a publicly known decryption key.
Apply independently
A school must send a large confidential backup to a partner. Explain the key-sharing problem with symmetric encryption, the role of authenticated public keys, and why a shared symmetric key is suitable for the bulk data. Compare your answer with the distinctions above.
AI Socratic Tutor
Need guidance? Ask a question or use the hint below.
AI Socratic Tutor is an All-Access Benefit
Unlock step-by-step Socratic hints, algorithm trace table walkthroughs, and error diagnostics for every Cambridge exercise.
You're chatting with an AI tutor, not a person. AI can make mistakes, so double-check its answers.
Application: Check the reasoning
Application: Check the reasoning
- Same shared secret for encryption/decryption: symmetric or asymmetric? [Space 1]
- For confidential sending to Ravi, use Ravi's public or private key to encrypt? [Space 2]
- Which key must Ravi keep secret? [Space 3]
Interactive exercises for Module 2 and beyond require an active plan.