Skip to main content

obfbool

Macro obfbool 

Source
macro_rules! obfbool {
    ($val:expr) => { ... };
}
Expand description

Compiletime boolean constant obfuscation.

Stores a boolean constant in XOR-encrypted form inside the binary. The plaintext value is only reconstructed at runtime.

assert_eq!(obfany::obfbool!(true), true);
assert_eq!(obfany::obfbool!(false), false);