Package Exports
- @xbibzlibrary/obfuscator
- @xbibzlibrary/obfuscator/dist/xbibz-obfuscator.min.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@xbibzlibrary/obfuscator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Xbibz Library Obfuscator
Overview
Xbibz Library Obfuscator represents an advanced code protection solution designed for JavaScript, JSON, and CSS assets. Built with polymorphic and metamorphic technology, this tool provides enterprise-grade obfuscation that transforms your code into a highly secure digital fortress, offering protection far beyond standard obfuscation methods.
View Live Demo | Read Documentation
Key Features
Polymorphic & Metamorphic Engine — The core engine continuously transforms code structure, making reverse engineering exceptionally difficult through dynamic code mutation.
Military-Grade AES Encryption — Critical data and strings are protected using multi-layered AES encryption, ensuring maximum security for sensitive information.
Multi-Format Support — Comprehensive protection across JavaScript, JSON, and CSS files within a unified toolset, streamlining your security workflow.
Anti-Debug & Anti-Tamper Protection — Built-in mechanisms actively prevent debugging attempts and unauthorized code modifications, creating self-defending code.
Cross-Browser Compatibility — Engineered to run seamlessly across modern browsers with intelligent fallback support for legacy environments.
Performance Monitoring — Integrated performance tracking allows you to monitor the impact of obfuscation on runtime efficiency.
Batch Processing Capability — Process multiple files simultaneously through an efficient batch operation system, ideal for large-scale projects.
Installation
The installation process has been streamlined through automated scripts. Follow these steps to set up your development environment.
Clone the Repository
Begin by cloning the repository to your local machine:
git clone https://github.com/xbibzlibrary/obfuscator.git
cd xbibz-obfuscatorInitialize Project Structure
Execute the provided setup script to automatically generate the complete project structure:
chmod +x create.sh
./create.shBuild the Library
Once the project structure is established, compile all source files into the distribution folder:
node build.jsThe build process generates both standard and minified versions of the library in the dist/ directory, ready for integration into your projects.
Usage Examples
JavaScript Obfuscation
The following example demonstrates how to obfuscate JavaScript code with maximum security settings:
const XbibzObfuscator = require('./dist/xbibz-obfuscator');
const obfuscator = XbibzObfuscator.create({ obfuscationLevel: 9 });
const jsCode = 'function haloDunia() { console.log("Ini kode rahasia!"); }';
const obfuscatedJS = obfuscator.obfuscateJavaScript(jsCode);
console.log(obfuscatedJS);
// Returns: Heavily obfuscated and secured JavaScript codeJSON Obfuscation
Protect sensitive JSON data structures and values through encryption:
const jsonCode = '{ "user": "Xbibz", "password": "super_secret_123" }';
const obfuscatedJSON = obfuscator.obfuscateJSON(jsonCode);
console.log(obfuscatedJSON);
// Returns: Encrypted JSON with protected structure and valuesCSS Obfuscation
Generate obfuscated CSS with randomized class names and corresponding JavaScript mapping:
const cssCode = '.rahasia { color: red; } #super-rahasia { display: none; }';
const result = obfuscator.generateObfuscatedCSS(cssCode);
console.log(result.css); // Obfuscated CSS with randomized selectors
console.log(result.javascript); // JavaScript code to apply obfuscated CSS
console.log(result.mapping); // Mapping between original and obfuscated namesProject Architecture
The library is organized into a modular structure that separates concerns and maintains code clarity:
xbibz-obfuscator/
├── src/
│ ├── core/ Core engine (polymorphic, encryption systems)
│ ├── obfuscators/ Format-specific obfuscation logic (JS, JSON, CSS)
│ ├── utils/ Supporting utilities (cryptography, string manipulation)
│ └── browser/ Browser compatibility layer
├── dist/ Compiled library files
├── package.json Project configuration and dependencies
└── create.sh Automated project setup scriptSupport & Community
If you find this project valuable and would like to support continued development, consider contributing through Ko-fi. You can also follow our content and updates on TikTok for the latest news and tutorials.
License
This project is released under the MIT License. See the LICENSE file for complete details.
Developed with dedication by Xbibz Official