Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Encrypting and decrypting with one shared key worksheet is part of the IGCSE Computer Science 0478 — 2.3 Encryption journey. Print it as a booklet?
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 | |
|---|---|---|
| 1plaintext + key → ciphertext | APlaintext → [Key] → Ciphertext → [Key] → Plaintext | |
| 2ciphertext + key → plaintext | BThe receiver decrypts the ciphertext with the same shared key to get the original message back | |
| 3Symmetric encryption uses the same key to encrypt and to decrypt | CThe sender encrypts the readable message with the shared key to produce unreadable ciphertext | |
| 4Diagram of the full process from sender to receiver | DThe keys are different, so decryption with the wrong key gives unreadable output, not the original message | |
| 5Sender key = 7, Receiver key = 3, decrypted message is readable | ESender key = 7, Receiver key = 7 | |
| 6Receiver decrypts: plaintext + key → ciphertext | FThe direction is wrong: decryption turns ciphertext into plaintext, not plaintext into ciphertext |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
symmetric encryption — The sender encrypts plaintext into ciphertext with a key; the receiver decrypts it back to plaintext using the same key. A wrong key gives unreadable output.ciphertext ← ENCRYPT(plaintext, key)plaintext ← DECRYPT(ciphertext, key)ciphertext ← ENCRYPT(plaintext, key)
plaintext ← DECRYPT(ciphertext, key)wrongKey ← "K9"
output ← DECRYPT(ciphertext, wrongKey)
// output is unreadablesharedKey ← "SECRET"
ciphertext ← ENCRYPT(message, sharedKey)
plaintext ← DECRYPT(ciphertext, sharedKey)