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 | |
|---|---|---|
| 1ct = encrypt(msg, pub) | AThe mistake: decrypting with the public key instead of the private key | |
| 2pt = decrypt(ct, priv) | BDecrypting data using the matching private key | |
| 3Asymmetric encryption uses a linked pair of keys | CEncrypting data using the recipient's public key | |
| 4The public key can be shared openly without weakening security | DThe mistake: sharing the private key, which must stay secret | |
| 5share_publicly(priv) | Eshare_publicly(pub) | |
| 6pt = decrypt(ct, pub) | Fpub, priv = generate_key_pair() |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Asymmetric encryption — Encryption that uses a linked pair of keys: a public key to encrypt data and a private key to decrypt it, with no shared secret key needed.public_key = get_public()private_key = get_private()ct = asym_encrypt(msg, public_key)pt = asym_decrypt(ct, private_key)def generate_key_pair():