Preprocessor String Cryption
 
  
Hello,
i like to define strings which get saved xored afterward.
| 12
 3
 4
 5
 
 | #define PreXOR(str, key) { XOR::PreXOREncode(str, key) }
#define ServerAccountname PreXOR("Accountname", "Cryptkey")
static char* XOR::PreXOREncode(char *Encoded, char *Key);
...
Use ServerAccountname....
 | 
Afterward in the binary code you shouldn't find the accountname, just the xored hash.
How is that possible?
Last edited on 
 
 
 
  
Learn about constexpr and templates.
Should warn you though: it is a very advanced topic.
 
 
Topic archived. No new replies allowed.