1.0.8 • Published 2 years ago
complexify.js v1.0.8
complexify.js
A Node.js tool to compress all your code into a single line of unreadable code, made with uglify.js and javascript-obfuscator.
How is this different from javascript-obfuscator?
Instead of only obfuscation, it will go through steps of encoding/decoding:
- Encoding the given file into a Uint8Array
- Creating a file that can decode the Uint8Array
- Obfuscating the file
- Encoding it with JJEncode
- Splitting the file into different characters
- Minifying the file using uglify.js
Decoding
- Joining the characters
- Evaluating the joined code
Installation & Usage
First, install complexify.js with the NPM package:
npm install -g complexify.js
Now you can use complexify.js. To compress a file, run:
complexify -o output-file.js file-to-compress.js
file-to-compress.js:
console.log('Hello World!');
The output file:
global.eval((new TextDecoder).decode(Uint8Array.from([99,111,110,115,111,108,101,46,108,111,103,40,39,72,101,108,108,111,32,87,111,114,108,100,33,39,41,59])));