Mayank
Mayank

Reputation: 5738

Need Clarification: Encryption

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

Answers (1)

Raj
Raj

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

Related Questions