Encrypt/Decrypt Functions
Just a lil' something I found on google, this should stop those pesky hex editors! I take no credit for these, however I don't know who they belong too.
Code:
char* encrypt(const char* plaintext)
{
int len = strlen(plaintext);
char* cyphertext = new char[len+1];
for(int i=0 ; i<len ; ++i)
{
cyphertext[i] = plaintext[i] + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9;
}
cyphertext[len] = 0;
return cyphertext;
}
char* decrypt(const char* plaintext)
{
int len = strlen(plaintext);
char* cyphertext = new char[len+1];
for(int i=0 ; i<len ; ++i)
{
cyphertext[i] = plaintext[i] - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9;
}
cyphertext[len] = 0;
return cyphertext;
}
If you have no clue how to use em, all I can say is: learn C++ /
Enjoy!
1. Every reverser will see that kind of encryption immediately. But for noobs it's ok.
2. This function will give you a very very big memory leak when you call it each frame (in Present, EndScene, etc)
If you use this on your program, all I have to do is come here, copy and paste the decrypt function you put up there, and use it to reverse your hack.