I have a pre-existing public/private key pair for RSA encryption which I need to use in .net . All the examples I can find online demonstrate how to generate a new private/p
I realise this is a very old question but maybe someone still looks at this...
Nowadays you can retrieve/store your keys in XML format (which you possibly could back in the days too).
Example import:
this.RSAKey = RSA.FromXmlString(xmlString: myRSAXMLKey);
Example export:
this.RSAKey_XMLString = RSA.ToXmlString(includePrivateParameters: false);