public void AutokeyCiphertext_Output_File_Name() { AutokeyCiphertext autokey = new AutokeyCiphertext(); string outputFileName = autokey.GetOutputFileName("H:\\Downloads\\test3.bin"); Assert.AreEqual("H:\\Downloads\\test3_out.bin", outputFileName); }
public void AutokeyCiphertext_Logic_Engine_Works_6() { AutokeyCiphertext autokey = new AutokeyCiphertext(); //autokey.Init("1011", "1001", "1100"); autokey.Init("1011", "11001"); List <string> streams = new List <string>(); streams.Add("1110"); autokey.Bytes = streams; //autokey.Encrypt(); string result = autokey.GetOutput("", 1); Assert.AreEqual("1100", result); }