rust_code_obfuscator_core

Crates.iorust_code_obfuscator_core
lib.rsrust_code_obfuscator_core
version0.3.0
created_at2025-07-01 13:24:46.84761+00
updated_at2025-12-29 16:49:54.77212+00
descriptionCore encryption and obfuscation logic for rustfuscator
homepage
repositoryhttps://github.com/GianIac/rustfuscator
max_upload_size
id1733223
size24,287
Gianfranco Iaculo (GianIac)

documentation

README

rust_code_obfuscator_core

crates.io Contributing Whitepaper Obfuscation Guide

Core engine for the Rustfuscator — a control flow and syntax obfuscation tool for Rust codebases.


🧠 What is rust_code_obfuscator_core?

This crate is the core logic behind Rustfuscator, a Rust code obfuscation tool that transforms readable Rust code into functionally equivalent but harder-to-analyze and harder-to-reverse-engineer output (but not impossible !!).

It is not a standalone crate — it powers the procedural macros and CLI-level abstractions of the Rustfuscator project.

Note about Key management for crypto.rs

Now uses build-time key management, the key is injected via build.rs:

  • If OBFUSCATOR_KEY_HEX (64 hex chars) is set, that value is used.
  • Otherwise, a random 32-byte key is generated for the build.

A 256-bit AES key is provided at build time (not in source code).

  • Deterministic builds:
    export OBFUSCATOR_KEY_HEX="00112233... (64 hex chars) ..."
    cargo build --release 
    
  • If unset, a random key is generated per build.
  • The runtime API returns Result (no unwrap() in crypto paths).
Commit count: 148

cargo fmt