public static FromPrivateRSAParameters ( this privateKey ) : string | ||
privateKey | this | |
return | string |
public static string FromPrivateRSAParameters(this RSAParameters privateKey)
{
using (var rsa = RSA.Create())
{
rsa.ImportParameters(privateKey);
return rsa.ToXmlString(includePrivateParameters: true);
}
}