Reputation: 23
I just wanted to make sure I am on the right track
I assume logically speaking the "Secret" can only be encrypted with the receivers public key, although is the encrypted secret attached to the encrypted file / document?
Upvotes: 1
Views: 701
Reputation: 456
Sticking with John Browne's metaphor:
Upvotes: 0
Reputation: 722
Public key encryption: An easy way to visualize this is as follows:
I send someone an unlocked box that they can put stuff in. Then they close it and it locks. They can ship me the box and I have the only key that will open the lock.
The locked box is the public key encryption; the key is my private key.
Symmetric key encryption works like this:
We buy a padlock at Home Depot and it comes with two keys. You take one and move to Boston; I take one and move to San Jose. We can padlock our box and ship it back and forth, only we have the keys.
Upvotes: 2
Reputation: 46080
p1. Sender generates session symmetric key.
p3. session key is encrypted using this public key.
Yes, the encrypted secret is attached to the encrypted file. There's no risk in this as this is a session (one-time) key.
Upvotes: 1