XOR Encryption Class
Here is a simple XOR encryption class:
Now an example of how to use.
First you create an object of the XOR class:
Then to encrypt a string and save it to a variable, you would do:
The same function would decrypt the encrypted string, so to get it back, you would do:
You can use this to encrypt strings in a hack, or anywhere else 
Code:
class XOR{
protected:
char key[256];
public:
XOR(){
key="fjsldjf84937fd7f6s876df52396tegulhghs87f53f8w987r8970w987erSDFJDFLJSGHHEIHWOHGKDFGSLGDKHSLKDGH";
}
char* xorStr(char *string){
const static int len = strlen(string);
char* temp = new char(len);
for(int i = 0; i < len+1;i++)
temp[i] = string[i]^key[i];
return temp;
}
};
First you create an object of the XOR class:
Code:
XOR* xor = new XOR();
Code:
char* x=xor->xorStr("lol");
Code:
char* orig=xor->xorStr(x);


