Expand description
Crate implementing macros for encrust
. See the main crate for documentation.
Macros§
- encrust
- Encrust a literal value so the actual data is obfuscated before being included in the binary. Currently integers, strings and arrays of (arrays of) integers and strings are accepted.
- encrust_
file_ bytes - Read the contents of a file into a
u8
array and encrust it so the actual file contents is obfuscated before being included in the binary. - encrust_
file_ string - Read the contents of a file into a String and encrust it so the actual file contents is obfuscated before being included in the binary.
- encrust_
vec - Encrust a vec of literals. This works similarly to
encrust!
and supports the same data types, but puts the data in avec
. - hashbytes
- Hash an array of bytes so that the byte pattern can be searched for without including the bytes themselves in the executable.
- hashstring
- Hash a string so that it can be searched for in the resulting executable without including the
actual string. This macro creates a case sensitive
encrust::Hashstring
. - hashstring_
ci - Similar to the
hashstring!
macro, but with a case insensitiveencrust::Hashstring
.
Derive Macros§
- Encrustable
- Derive macro to allow custom
struct
s andenum
s to be encrusted.