Crate encrust_macros

Crate encrust_macros 

Source
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 a vec.
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 insensitive encrust::Hashstring.

Derive Macros§

Encrustable
Derive macro to allow custom structs and enums to be encrusted.