Information Security Basics
Using public-key cryptography, A wants to encrypt a message so that only B can read it. Which key is used for the encryption?
- AA's private key
- BB's public key
- CB's private key
Show answer and explanation
Answer: B. B's public key
In public-key cryptography each person has a pair of keys: a public key and a private key. The public key may be known to anyone, while only its owner keeps the private key, closely guarded. Data encrypted with a public key can be decrypted only with the matching private key. So A encrypts with B's public key and sends the message, and B decrypts it with B's own private key. Even if the ciphertext is intercepted on the way, anyone without B's private key cannot read it. Only B holds B's private key, so A cannot use it. Processing with A's private key is what happens in a digital signature, which shows that A created the data.
- A. Anything processed with A's private key can be checked by anyone with A's public key, so it cannot keep a message secret. That key is used for digital signatures.
- B. Correct. If it is encrypted with B's public key, only B's private key can decrypt it.
- C. B's private key is held only by B, so A cannot use it. It is the key used for decryption.