locked
RSA decryption in C# w/ preexisting private key? RRS feed

  • Question

  • I've been given a key (text) to use that was made in java and I can't find out what would let me associate that key w/ an RSACryptoServiceProvider object so that it's used when I call Decrypt().  I don't think I can use the .FromXmlString() method because I don't have the key in that xml format.. i just have a text key. Also, the type used was said to be: RSA/ECB/PKCS1Padding.

    Other areas mention making an X509 certificate w/ makecert.exe, but throughout, I see no area mentioning the ability to specific what private key would be used.

    Thank you all for your assistance with this, and if you could please also provide a secure way to store the key on disk, that would be wonderful!
    Thursday, January 15, 2009 9:57 PM

All replies

  • i am having the exact same problem.

    If you have figured out the solution,will you please post the solution.

    Thanking in advance.

    Wednesday, May 11, 2011 6:39 AM