コード例 #1
0
        public void RSA_Java_EncryptWithDecrypt()
        {
            string data = "hello word!";//"MD5",

            string encryptResult = RSAHelper.EncryptJava(publicKeyJava, data);
            string decryptResult = RSAHelper.DecryptJava(privateKeyJava, encryptResult);

            Debug.Print(encryptResult);
            Debug.Print(decryptResult);
            Assert.IsTrue(data == decryptResult);
            //if (data != decryptResult)
            //{
            //    int a = 0;
            //    int b = 0 / a;
            //}
        }