示例#1
0
        public static string RSAEncyptWithx509Cert(string pfadx509Cert, string text)
        {
            AsymmetricKeyParameter publicKey = KeyHelper.GetPublicKeyFromX509Cert(pfadx509Cert);

            return(RSAEncryptWithKey(publicKey, text));
        }
示例#2
0
        public static bool VerifySign(string text, string signatur, string pathx509Cert)
        {
            AsymmetricKeyParameter key = KeyHelper.GetPublicKeyFromX509Cert(pathx509Cert);

            return(VerifySign(text, signatur, key));
        }