jfogs
Javascript code obfuscator
一个 JS 代码混淆器
e.g.
console.log(/\w/img.test('hello'));
(function ($fog$0, $fog$1, $fog$2, $fog$3) {
console[$fog$0]($fog$2[$fog$1]($fog$3));
})("log", "test", /\w/img, "hello");
Install
$ npm install --save jfogs
Usage
var jfogs = require('jfogs');
console.log(jfogs.obfuscate('function hello() { console.log('Hello world!'); }'));
$ npm install --global jfogs
$ jfogs --help
Command Line
Usage:
jfogs <input list> [options]
Options:
-o, --output Output file (default STDOUT)
-t, --type Encryption type (default "") e.g. "zero" | "reverse"
-v, --version Output jfogs version
License
MIT © zswang