I have been doing research on how RSA encryption works (mostly from a math's point of view) and I have come to understand this:
- By encrypting with the public key of bob, only bob can decrypt it with his private key.
- By encrypting with my private key, everybody with my public key can decrypt it, and know it's really me (signature).
But what if I want to sign my message (private key) and make so only bob can read it?
Should I encrypt with my private key for signature and then encrypt with bob public key so only he can read it?
And by the way, wouldn't this be heavy on computing power?