Esempio n. 1
0
        public void TestProcessXor4Const()
        {
            var r = ProcessXor4Const.FromFile(SourceFile("process_xor_4.bin"));

            Assert.AreEqual(r.Key, new byte[] { 236, 187, 163, 20 });
            Assert.AreEqual(r.Buf, new byte[] { 102, 111, 111, 32, 98, 97, 114 });
        }
        public void TestProcessXor4Const()
        {
            ProcessXor4Const r = ProcessXor4Const.FromFile(SourceFile("process_xor_4.bin"));

            Assert.AreEqual(System.Text.Encoding.UTF8.GetString(r.Buf), "foo bar");
        }