Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1encrypt(message, receiver_public_key) | AThe receiver turns the ciphertext back into plaintext using their own private key, which is never shared | |
| 2decrypt(ciphertext, my_private_key) | BSam sent his private key over the network. The private key must stay secret and only the public key is shared. | |
| 3Worked example: Priya wants to send Sam a secret message, so Sam shares his public key and Priya uses it to encrypt | Cciphertext = encrypt("Meet at 5", sam_public_key) | |
| 4An interceptor can see the public key and the ciphertext, but cannot read the message without the private key | Dintercepted = [sam_public_key, ciphertext] | |
| 5ciphertext = encrypt("Meet at 5", priya_public_key) | EPriya encrypted with her own public key. The sender must use the receiver's public key (Sam's), or Sam cannot decrypt it. | |
| 6send(sam_private_key) | FThe sender turns the plaintext into ciphertext using the receiver's public key |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Encrypt with public key, decrypt with private key — The receiver shares their public key, the sender encrypts with it, and only the receiver's private key can decrypt it. No secret key is shared, so an interceptor sees only ciphertext.ciphertext ← ENCRYPT(message, public_key)message ← DECRYPT(ciphertext, private_key)Amy: ciphertext ← ENCRYPT(msg, public_key)Eve sees the public key and the ciphertext1 Receiver shares the public key
2 Sender encrypts with the public key
3 Receiver decrypts with the private key