javascript-obfuscator
Advanced tools
Comparing version
@@ -26,3 +26,3 @@ "use strict"; | ||
rotateUnicodeArray: true, | ||
wrapUnicodeArrayCalls: false | ||
wrapUnicodeArrayCalls: true | ||
}; | ||
@@ -29,0 +29,0 @@ JavaScriptObfuscator.escodegenParams = { |
@@ -32,3 +32,3 @@ "use strict"; | ||
var ${this.unicodeArrayCallsWrapperName} = function (${keyName}) { | ||
return ${this.unicodeArrayName}[[][${Utils_1.Utils.stringToUnicode('filter')}][${Utils_1.Utils.stringToUnicode('constructor')}](${Utils_1.Utils.stringToUnicode('return this')})()[${Utils_1.Utils.stringToUnicode('parseInt')}](${keyName})] | ||
return ${this.unicodeArrayName}[parseInt(${keyName}, 16)] | ||
}; | ||
@@ -35,0 +35,0 @@ `); |
@@ -20,3 +20,3 @@ "use strict"; | ||
rotateUnicodeArray: true, | ||
wrapUnicodeArrayCalls: false | ||
wrapUnicodeArrayCalls: true | ||
}; | ||
@@ -23,0 +23,0 @@ |
{ | ||
"name": "javascript-obfuscator", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "JavaScript obfuscator", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -106,6 +106,4 @@ #JavaScript obfuscator for Node.js | ||
####wrapUnicodeArrayCalls | ||
Type: `boolean` Default: `false` | ||
Type: `boolean` Default: `true` | ||
#####This option have huge affect on performance! Use this option only on small pieces of code (< 5000 LOC) | ||
Instead using direct calls to `unicodeArray` items `var t = _0x43a123[0x0]`, | ||
@@ -112,0 +110,0 @@ when index `0x0` can be easy reverted to `0` with few js beautifiers, this option wrap all calls to special function instead. |
@@ -85,3 +85,3 @@ import * as esprima from 'esprima'; | ||
var ${this.unicodeArrayCallsWrapperName} = function (${keyName}) { | ||
return ${this.unicodeArrayName}[[][${Utils.stringToUnicode('filter')}][${Utils.stringToUnicode('constructor')}](${Utils.stringToUnicode('return this')})()[${Utils.stringToUnicode('parseInt')}](${keyName})] | ||
return ${this.unicodeArrayName}[parseInt(${keyName}, 16)] | ||
}; | ||
@@ -88,0 +88,0 @@ `); |
266944
-0.16%360668
-8.07%114
-1.72%