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 | |
|---|---|---|
| 1AES_encrypt(file, sharedKey) | Asend(sharedKey, toBob) // risky if intercepted | |
| 2RSA_encrypt(message, publicKey) | BAsymmetric encryption: a public key locks the data and only the matching private key can unlock it | |
| 3Key distribution problem: both people need the same secret key, so it must be shared securely before they can communicate | CSymmetric encryption: the same secret key is used to lock the data, and it is fast for large files | |
| 4In practice both are combined: asymmetric encryption protects a symmetric session key, then the fast symmetric key encrypts the data | Dkey = RSA_encrypt(sessionKey, publicKey) data = AES_encrypt(file, sessionKey) | |
| 5Asymmetric encryption is faster than symmetric, so use it for all large files | EThe private key must stay secret. Only the public key is shared, so others can encrypt messages for you | |
| 6Asymmetric encryption: share the private key so others can send you messages | FAsymmetric encryption is slower than symmetric, so it is not the best choice for encrypting large amounts of data on its own |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
symmetric vs asymmetric — Symmetric: one shared secret key, fast but hard to share safely. Asymmetric: public and private key pair, no secret to share but slower. Often combined.// One shared secret key, very fast
keyType ← SYMMETRIC// A public key and a private key
keyType ← ASYMMETRICencrypt(message, recipient.publicKey)
decrypt(ciphertext, myPrivateKey)sessionKey ← newSymmetricKey()
sent ← asymmetricEncrypt(sessionKey, pubKey)// Large file: use the faster key type
IF size > 1000000 THEN method ← SYMMETRIC