14 lines
294 B
C#

using System.Security.Cryptography;
namespace DigitalData.Core.Security
{
public static class RSAExtensions
{
public static RSA ToRSA(this string pem)
{
var rsa = RSA.Create();
rsa.ImportFromPem(pem);
return rsa;
}
}
}