Let assume I've hardcoded my RSA key in string const:
private const String rsaXmlKey = "<RSAKeyValue>something</RSAKeyValue>
Then I can use it with RSACryptoServiceProvider in that way:
RSACryptoServiceProvider csp = new RSACryptoServiceProvider();
csp .FromXmlString(rsaXmlKey);
But I want to do it better and keep RSA key in SecureString. I know that are some issues with initializing SecureString, but it doesn't matter. I wonder to know how to pass SecureString to the RSACryptoServiceProvider?
Does it support SecureString ?
I don't want to convert SecureString to String, because it would be reasonless.