1
Answer

RSA cryptography

Marcus Neiman

Marcus Neiman

18y
6.9k
1
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.
Answers (1)
0
Muhammad Shakir

Muhammad Shakir

NA 1.2k 499.8k 18y
because ur xml is not finding any key file. place your key file to that position where ur project is starting and then execute it. i hope, it will run. to send toxmlstring you will use and for receiving file fromxmlstring will use.