Bram wrote:
> I have a basic question about RSA.
>
> Let's say Alice wants to send a message to Bob.
>
> 1. Alice uses Bobs' public key and her own private key
to encrypt the
> message.
> 2. Bob uses Alices public key and his own private key
to decrypt the
> message.
>
> Is this correct or am I not getting it right?
[..]
Hi Bram,
The answer to your question is: Nope, you are not getting it
right.
Public Keys are used for encrypting, Private Keys for
decrypting.
Private keys are used for signing, and Public to verify a
signature.
So, using your example:
1. Alice encryps her message to Bob using Bob's Public Key.
2. Bob decrypts Alice's message to him using his own
Private Keys.
and extending the example:
3. Alice signs the message (so that Bob can know that it is
from her)
using her Private Key.
4. Bob verifies that the message has come unchanges from
Alice using
her Private Key.
It has been a while since I have looked at this so I
disclaim any
liability for anything going wrong because of this post
Regards,
Antony
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---
|