A powerful JavaScript code obfuscation tool that helps protect your code from reverse engineering and intellectual property theft.
- JavaScript Obfuscation: Obfuscate your JavaScript code to make it harder to read and understand
- Variable Renaming: Automatically rename variables to meaningless names
- String Encoding: Encode strings to hide sensitive information
- Dead Code Insertion: Add dead code to increase complexity
- Web Interface: User-friendly web interface for easy obfuscation
- Fast & Efficient: Process large codebases quickly
- Customizable Options: Fine-tune obfuscation settings to your needs
- Node.js (v12 or higher)
- npm or yarn
git clone https://github.com/7897git/obfuscator.git
cd obfuscator
npm installnpm startThis will start the local web server where you can use the obfuscation tool through the browser interface.
- Open your browser and navigate to
http://localhost:3000(or the configured port) - Paste your JavaScript code in the input area
- Configure obfuscation options as needed
- Click "Obfuscate" to process your code
- Copy the obfuscated code from the output area
| Option | Description |
|---|---|
| Variable Renaming | Rename variables to random identifiers |
| String Encoding | Encode string literals |
| Remove Comments | Strip all comments from code |
| Compact Output | Minimize whitespace in output |
| Dead Code | Insert dummy code to increase complexity |
obfuscator/
├── public/ # Static files (HTML, CSS)
├── src/ # Source JavaScript files
├── index.js # Main application entry point
├── package.json # Dependencies and scripts
└── README.md # This file
- JavaScript (59%) - Core obfuscation logic
- HTML (41%) - Web interface
The obfuscator transforms readable JavaScript code into a much harder-to-read version while maintaining the same functionality:
- Parsing: Parse the input JavaScript code
- Transformation: Apply obfuscation techniques:
- Rename identifiers
- Encode strings
- Remove unnecessary whitespace
- Optionally insert dead code
- Generation: Generate the obfuscated output
- Testing: Always test obfuscated code thoroughly to ensure it works correctly
- Backup: Keep a backup of your original source code
- Performance: Obfuscation may slightly impact performance depending on options used
- Not Unbreakable: Obfuscation increases difficulty of reverse engineering but is not 100% secure
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions, please open an issue in the GitHub repository.
Happy Obfuscating! 🎉