This header is example of a lightweight compile-time string obfuscation techniques to protect sensitive string literals (API names, file extensions etc) in c++ binary or DLL on Windows 10/11. , it hides strings from static analysis using constexpr encryption with a Linear congruential Engine random key generation and have minimal runtime overhead. Perfect for PoC malwares, red team tools, or stealth-focused research.
- Compile-time encryption via Linear Congruential Engine for random key generation
- support for ANSI and Unicode with OBF_STR/OBF_WSTR macros or you can defining your own.
- uses modular arithmetic and ext. euclidean algorithm for reversible encryption
- use random seed derived from TIME for unique builds
- Prime number-based keys for robust encryption
- Zero dependencies, written in C++ MSVC
- Compile-time encryption via Linear Congruential Engine for random key generation
- support for ANSI and Unicode with OBF_STR/OBF_WSTR macros or you can defining your own.
- uses modular arithmetic and ext. euclidean algorithm for reversible encryption
- use random seed derived from TIME for unique builds
- Prime number-based keys for robust encryption
- Zero dependencies, written in C++ MSVC