Compile time string Xor for visual studio 2010-2019 (not sure).
https://www.unknowncheats.me/forum/c-and-c-/449137-macro-xor-string-pre-build-event.html
- https://github.com/stevemk14ebr/VS2013-Compile-Time-XOR
- https://www.unknowncheats.me/forum/c-and-c-/131623-compile-time-string-encryption-visual-studio-2010-2012-a.html
How to setup:
- Go to Properties (your project) -> Configuration Properties -> Build Events -> Pre-Build Event
- Add the Command Line: -> call "$(SolutionDir)\XorStr.exe"
How to use:
- Add #include XorStr.h to your project
- https://github.com/trishaaldians/Macro-Xor-String-Pre-Build/blob/main/Common/XorStr/XorStr.h
#include "../Common/XorStr/XorStr.h"
Example:
1. Just Add XOR("")
2. printf(XOR("my string"));
3. After Build -> printf(/*my string*/XorStr<0x29,10,0xE184BE23>("\x44\x53\x0B\x5F\x59\x5C\x46\x5E\x56"+0xE184BE23).decode);