https://github.com/yinheli/chamox
A Rust procedural macro designed to generate obfuscated and meaningless code blocks to make reverse engineering more complex
https://github.com/yinheli/chamox
obfuscation reverse-engineering security
Last synced: 5 months ago
JSON representation
A Rust procedural macro designed to generate obfuscated and meaningless code blocks to make reverse engineering more complex
- Host: GitHub
- URL: https://github.com/yinheli/chamox
- Owner: yinheli
- License: apache-2.0
- Created: 2025-02-05T10:18:59.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-09-01T21:13:27.000Z (7 months ago)
- Last Synced: 2025-09-20T04:37:40.592Z (6 months ago)
- Topics: obfuscation, reverse-engineering, security
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chamox – Obfuscation Macro for Rust
[](https://github.com/yinheli/chamox/actions)
[](https://crates.io/crates/chamox)
[](https://docs.rs/chamox)
[](LICENSE)
`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.
## Features
- 🌀 Inserts random, meaningless calculations and control flows
- 🔀 Generates misleading code structures to confuse decompilers
- 🎭 Makes static analysis more difficult without modifying actual logic
## Example Usage
```rust
use chamox::obfuscate;
#[obfuscate]
fn hidden_logic() -> i32 {
// This function's implementation will be obfuscated
42
}
```
## Installation
Add the following to your `Cargo.toml`:
```toml
[dependencies]
chamox = "0.1"
```
## How It Works
The `#[obfuscate]` macro injects meaningless operations within your function, making it harder for static analysis tools and decompilers to reconstruct the original logic.
## Security Notice
While this macro makes reverse engineering more complex, it **does not provide real security**. Do not rely on it for cryptographic protection.
## Contributing
We welcome contributions! Please open an issue or submit a pull request.
## Contributors
## License
This project is licensed under MIT or Apache-2.0.