xorstring
is the implementation of
Malware related compile-time hacks with C++11
by LeFF
but for Rust Nightly (2018 edition).
This XOR encrypts byte-string literals at compile-time with a
XOR-cypher, then decrypts them at runtime. This circumvents simple
.rodata
, .data
, and .text
string checks by anti-cheats such as
Valve Anti-Cheat, in that it can store plain-text internal data
without the anti-cheat noticing it.
Because of proc_macro_hygiene
.
Here: https://github.com/Proximyst/xorstring-procmacro
The project is licensed under the BSD 3-Clause Licence.