public void TestAESEncrypt(string textvalue, string exceptedValue) { /* String textvalue = "Ala ma kota"; * String exceptedValue = "72227E2717B01EFCA106A7CBC34A82BF";*/ Cryptography cryptography = new Cryptography(); string hashRel = cryptography.AESEncryption(textvalue); Assert.AreEqual(exceptedValue, hashRel); }
public void TestAESDecrypt(string value, string result) { Cryptography cryptography = new Cryptography(); /* String value = "Ala ma kota i psa";*/ string encrypt = cryptography.AESEncryption(value); String result2 = cryptography.AESDecryption(encrypt); Logger.LogMessage("Decrpt value", result2); Assert.AreEqual(value, result2); }