Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- using System.Text.RegularExpressions;
- namespace ConsoleTests
- {
- class ConsoleTests
- {
- static void Main()
- {
- string input = Console.ReadLine();
- string cipher = Console.ReadLine();
- StringBuilder result = new StringBuilder();
- for (int i = 0,j=0; i < input.Length; i++,j++)
- {
- if (j>=cipher.Length)
- {
- j = 0;
- }
- int temp = (int)input[i] ^ (int)cipher[j];
- result.Append(String.Format("\\u{0:x4} ", temp).Trim());
- }
- Console.WriteLine(result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment