コード例 #1
0
        public void RsaCipherCipher_Encryption_Test()
        {
            var rsaKey  = RsaCipher.GetKey();
            var encrypt = RsaCipher.Encrypt("VeyselMUTLU", rsaKey["PublicKey"]);

            var decrypt = RsaCipher.Decrypt(encrypt, rsaKey["PrivateKey"]);

            Assert.AreEqual("VeyselMUTLU", decrypt);
        }