public static string RSAEncyptWithx509Cert(string pfadx509Cert, string text) { AsymmetricKeyParameter publicKey = KeyHelper.GetPublicKeyFromX509Cert(pfadx509Cert); return(RSAEncryptWithKey(publicKey, text)); }
public static bool VerifySign(string text, string signatur, string pathx509Cert) { AsymmetricKeyParameter key = KeyHelper.GetPublicKeyFromX509Cert(pathx509Cert); return(VerifySign(text, signatur, key)); }