public void DecodeBlocksFromBinaryTests(string codedFilePath, string key, string expected) { DataEncryptionStandard des = new DataEncryptionStandard(); var actual = des.convertBinaryToAscii(des.ConvertHexToBits(des.DecryptFromFile(codedFilePath, key))); Assert.AreEqual(expected, actual); }
public void DESDecodeTests(string text, string key, string expected) { DataEncryptionStandard des = new DataEncryptionStandard(); var actual = des.convertBinaryToAscii(des.ConvertHexToBits(des.Decrypt(text, key))); Assert.AreEqual(expected, actual); }
public void CodeBlocksFromBinaryTests(string decodedFilePath, string key, string expected) { DataEncryptionStandard des = new DataEncryptionStandard(); var actual = des.EncryptFromFile(decodedFilePath, key); Assert.AreEqual(expected, actual); }
public void DESCodeTests(string text, string key, string expected) { DataEncryptionStandard des = new DataEncryptionStandard(); var actual = des.Encrypt(text, key); Assert.AreEqual(expected, actual); }