I'm trying to encrypt xml documents using rsa encryption and I decided to follow the example on msdn's website at this link: http://msdn2.microsoft.com/en-gb/library/ms229746.aspx
I combined that code together with the decryption example (which is linked to on that page and also here: http://msdn2.microsoft.com/en-gb/library/ms229919.aspx) but the resulting program does not work - I get an exception saying that it cannot find a decryption key. Its very possible that I simply don't understand how C#'s rsa api works. Any help would be appreciated.
RSA cryptography
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Muhammad ShakirRank #1,217 · 1.5K reputationPosted Jan 4, 2007, 8:43 PM EST