public void TestRandomEncryptions() { string plainTextIn = "Have a Delmar day!"; string cipherText1, cipherText2; EmbeddedSaltAes crypto; crypto = new EmbeddedSaltAes("00000000000000000000000000000000"); cipherText1 = crypto.Encrypt(plainTextIn); cipherText2 = crypto.Encrypt(plainTextIn); Assert.AreNotEqual(cipherText1, cipherText2); }
public void TestSingleInstanceCrypto() { string plainTextIn = "Have a Delmar day!"; string cipherText, plainTextout; EmbeddedSaltAes crypto; crypto = new EmbeddedSaltAes("00000000000000000000000000000000"); cipherText = crypto.Encrypt(plainTextIn); plainTextout = crypto.Decrypt(cipherText); Assert.AreEqual(plainTextIn, plainTextout); }
public void BadKeyCharTest2() { EmbeddedSaltAes crypto = new EmbeddedSaltAes("g0000000000000000000000000000000"); }
public void EmptyInputTest() { EmbeddedSaltAes crypto = new EmbeddedSaltAes("00000000000000000000000000000000"); crypto.Encrypt(""); }
public void TestBadKeyLength() { EmbeddedSaltAes crypto = new EmbeddedSaltAes("0"); }