Advertisement
ktostam450

EE Derot

May 27th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.08 KB | None | 0 0
  1.         public static string wkey;
  2.         public static string derot(string arg1)
  3.         {
  4.             int num = 0;
  5.             string str = "";
  6.             for (int i = 0; i < arg1.Length; i++)
  7.             {
  8.                 num = arg1[i];
  9.                 if ((num >= 0x61) && (num <= 0x7a))
  10.                 {
  11.                     if (num > 0x6d)
  12.                     {
  13.                         num -= 13;
  14.                     }
  15.                     else
  16.                     {
  17.                         num += 13;
  18.                     }
  19.                 }
  20.                 else if ((num >= 0x41) && (num <= 90))
  21.                 {
  22.                     if (num > 0x4d)
  23.                     {
  24.                         num -= 13;
  25.                     }
  26.                     else
  27.                     {
  28.                         num += 13;
  29.                     }
  30.                 }
  31.                 str = str + ((char)num);
  32.             }
  33.             return str;
  34.  
  35.                 wkey = derot(m[3].ToString());
  36.                 return;
  37.  
  38.                 con.Send(wkey, new object[] { 0, 10, 10, 9 });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement