A simple JavaScript obfuscator built with Node.js.
- Identifier Renaming: Renames variables and functions to short, meaningless names.
- String Encryption: Encodes string literals to hex escape sequences.
- Multi-Pass Obfuscation: Run obfuscation multiple times for added security.
- Auto-Minimization: Automatically minimizes the output code.
- Web UI: A Next.js based web interface for easy obfuscation.
npm install
# For Web UI
cd web
npm installnode src/index.js <input-file> [options]-o, --output <file>: Output file path.-n, --passes <number>: Number of obfuscation passes (1-4).--no-minify: Disable auto-minimization.--anti-debug: Enable anti-debugging protections.--key <licenseKey>: Protect the script with a Key System.--webhook <url>: Enable Discord Webhook logging.--lock-domain <domains>: Comma-separated list of domains to lock the script to.--self-defending: Enable self-defending mechanism (anti-tamper).--control-flow-flattening: Enable control flow flattening (makes code structure harder to read).--extreme: Enable Extreme Mode (high passes, massive junk injection).--iife: Wrap code in an IIFE to prevent global scope pollution (Console friendly).
node src/index.js test.js -o obfuscated.js -n 10 --key SECRET-123 --control-flow-flattening --extreme --iifecd web
npm run devOpen http://localhost:3000 in your browser.
- Run Obfuscator: Use the "Obfuscate Current File" task in VS Code.
- Debug: Use the "Debug Obfuscator" launch configuration.
- Test: Run
node src/index.js UnifiedJS.js -o UnifiedJS.obfuscated.jsto test with the comprehensive test file.