MSVC project:
The macro example encrypts string variables before the code build process. With examples of variable extraction, decryption and encryption functions. Macros xor string, but you can remake this example into a more complex encryption option.
EXEMPLE USE:
/*
Macros make string protected in code
*/
HideString(ProtectedString, "Nigga I done steal ya bikezz");
/*
Function get crypted string
*/
char* CryptedVar = ProtectedString.get();
printf("crypted: %s\r\n", CryptedVar);
/*
Function decrypt string
*/
char* DeCryptedVar = ProtectedString.decrypt();
printf("decrypted: %s\r\n", DeCryptedVar);
/*
Function crypt string
*/
char* CryptedVarAgain = ProtectedString.crypt();
printf("crypted again: %s\r\n", CryptedVarAgain);