class Program { static void Main(string[] args) { byte value = 199; Console.WriteLine(string.Format("before crypt {0}:", value)); Console.WriteLine(string.Format("after crypt {0}:", value ^ 34)); Console.WriteLine(string.Format("after decrypt {0}:", value ^ 34 ^ 34)); Console.ReadLine(); } }
http://ru.wikipedia.org/wiki/XOR