I just wanted to make sure I am on the right track
- Sender generates private key, encrypts message
- Sender requests receivers public key
- “Secret” is then encrypted with this public key
- Data sent to receiver for decryption
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?
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.