Click here to Skip to main content
14,733,542 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to encrypt plaintext using RSA algorithm. How can I get public key? I saw one method store key in xml file.But how I use this key in code of encryption?
Posted
Updated 7-Jun-11 23:56pm
v2

1 solution

I'm not sure, but I feel you're missing the very essence of Public-key Cryptography.
See http://en.wikipedia.org/wiki/Public-key_cryptography[^].

Now, read my lips: you always encrypt with one key and decrypt with another one.

See also:
http://en.wikipedia.org/wiki/RSA[^],
http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsa.aspx[^].

There is nothing you wanted to know but cannot find in the articles referenced above.

—SA
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900