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-256 encrypt the database file | ASymmetric encryption protects stored (at rest) data so only people with the key can read it, keeping it confidential. | |
| 2SHA-256 hash of the downloaded file | BECDH key exchange | |
| 3Two strangers need to agree on a shared key over the internet without sending the key itself, so they use asymmetric key exchange. | CHashing does not protect confidentiality because the data cannot be recovered from the hash. Use encryption to keep a file secret and a hash to check integrity. | |
| 4A website stores user passwords so that a breach does not reveal them, and it still needs to check a login. It uses a salted hash. | DPasswords should be hashed (and salted), not encrypted. Encryption can be reversed with the key, so a thief who steals the key can read every password. | |
| 5Store customer passwords using AES encryption | EA hash gives a fixed-length fingerprint, so you can check the file has not been changed (integrity). | |
| 6Use a hash to keep a file secret from outsiders | Fstored = hash(salt + password) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Match technique to job — Choose symmetric encryption for stored data, asymmetric keys to swap keys and sign, and hashing to check integrity and store passwords. Justify the choice.IF job = "stored data" THEN
technique ← "symmetric encryption"
END IFIF job = "swap keys" THEN
technique ← "asymmetric keys"
END IFIF job = "check integrity" THEN
technique ← "hashing"
END IFstored ← hash(password + salt)
SAVE stored TO databaseIF goal = "integrity" THEN
technique ← "hashing"
END IF