Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void Main(string[] args)
- {
- string str = "Super Secret Key";
- string text = Program.read();
- foreach (char x in str)
- Console.Write(Program.search(x, text));
- Console.ReadLine();
- }
- private static string read()
- {
- StreamReader streamReader = new StreamReader(@"C:\Users\Daniel\Desktop\reverse100.exe");
- return streamReader.ReadToEnd();
- }
- private static string search(char x, string text)
- {
- int length = text.Length;
- for (int index = 0; index < length; ++index)
- {
- if ((int)x == (int)text[index])
- return Convert.ToString(index * 1337 % 256, 16).PadLeft(2, '0');
- }
- return "??";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement