Reputation: 5738
I answered a question some days back and I got a downvote :-). Well, I'm still not able to find out what is wrong in my understanding of public key cryptography.
The question was nice and was:
If a string is encrypted in JAVA and .NET the resulting encrypted string is different but when reaches @ server it can be decrypted correctly.
My answer was: RSA Encryption in Java/.NET and decryption in .NET
I would like to understand what was wrong with the answer. Comments?
Upvotes: 0
Views: 59
Reputation: 80
Public key is used to encrypt the message, which the destination decrypts using its Private key.
Your answer was down-voted probably because you stated the reverse.
Upvotes: 1