示例#1
0
        private bool IsValidateKeyPair(string privateKey, string publicKey)
        {
            var sign = RSA.SignWithPrivateKey(privateKey, "teststring");

            return(RSA.VerifyWithPrivateKey(publicKey, "teststring", sign));
        }