Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 849 Bytes

README.md

File metadata and controls

39 lines (33 loc) · 849 Bytes

XorVarsMacros

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);