Ejemplo n.º 1
0
        private static void Cypher()
        {
            string ans = XOREncryptionDecryption.Encode("test text", "01001001011001110110111101110010011010010111001101100010011001010110110001101111011101100110000101110011");

            Console.WriteLine(ans);

            ans = XOREncryptionDecryption.Decode("000001000000011000011101000110110001110000000000", "01001001011001110110111101110010011010010111001101100010011001010110110001101111011101100110000101110011");
            Console.WriteLine(ans);
        }
Ejemplo n.º 2
0
        public void DecryptTest()
        {
            string ans = XOREncryptionDecryption.Decode(EncryptedText, Key);

            Assert.Equal(ans, Text);
        }