Crates.io | chamox |
lib.rs | chamox |
version | 0.1.4 |
created_at | 2025-02-05 10:37:23.272947+00 |
updated_at | 2025-02-06 01:40:27.960622+00 |
description | A Rust procedural macro to inject obfuscated, meaningless code to increase reverse engineering complexity. |
homepage | https://github.com/yinheli/chamox |
repository | https://github.com/yinheli/chamox |
max_upload_size | |
id | 1543813 |
size | 30,335 |
chamox
is a Rust procedural macro designed to generate obfuscated and meaningless code blocks to make reverse engineering more complex. This can be useful in scenarios where code security matters, such as protecting intellectual property or adding layers of obfuscation to compiled binaries.
use chamox::obfuscate;
#[obfuscate]
fn hidden_logic() -> i32 {
// This function's implementation will be obfuscated
42
}
Add the following to your Cargo.toml
:
[dependencies]
chamox = "0.1"
The #[obfuscate]
macro injects meaningless operations within your function, making it harder for static analysis tools and decompilers to reconstruct the original logic.
While this macro makes reverse engineering more complex, it does not provide real security. Do not rely on it for cryptographic protection.
We welcome contributions! Please open an issue or submit a pull request.
This project is licensed under MIT or Apache-2.0.