Sara types her card number into an online shop that uses asymmetric encryption. Which keys are used, and by whom?
- The shop's public key is sent to Sara's browser. This is safe because a public key can be seen by anyone.
- Sara's browser encrypts the card number with the shop's public key, giving ciphertext.
- Only the shop's private key matches that public key, and the shop never shares it.
- A hacker who intercepts the ciphertext has no private key, so cannot read it.
Answer: Sara's browser encrypts with the shop's public key; the shop decrypts with its own private key.