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)); }
public void XCryptTest(string data, string key) { TeaCryptorBase cryptor = new XTeaCryptor(); Assert.AreEqual(data, cryptor.DecryptString(cryptor.EncryptString(data, key), key)); }