Beispiel #1
0
        public void XRoundCryptTest(string data, string key, int round)
        {
            TeaCryptorBase cryptor = new XTeaCryptor();

            Assert.AreEqual(data, cryptor.DecryptString(cryptor.EncryptString(data, key, round), key, round));
        }
Beispiel #2
0
        public void XCryptTest(string data, string key)
        {
            TeaCryptorBase cryptor = new XTeaCryptor();

            Assert.AreEqual(data, cryptor.DecryptString(cryptor.EncryptString(data, key), key));
        }