XenocodeRCE

Untitled

Aug 21st, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. class ModdedXOR
  2.     {
  3.         public static string encrypt(string input) {
  4.             char[] key = {'R', 'C', 'E'};
  5.             char[] output = new char[input.Length];
  6.      
  7.             for(int i = 0; i < input.Length; i++) {
  8.                 //data[i] = data[i] ^ data[i+1] ^ key;
  9.                output[i] = (char)(input[i] ^ input[i + 1] ^ key[i % key.Length]);          
  10.             }    
  11.             return new string(output);
  12.         }
  13.    
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment