String Array

stringArray

The stringArray option is enabled by default and is the foundation of most obfuscation. It extracts string literals and places them in a special array.

JavaScript

String Array Encoding

Encoding adds another layer of protection by encoding the strings:

  • none - No encoding, strings stored as-is
  • base64 - Fast encoding, moderate protection
  • rc4 - Stronger protection, about 30-50% slower than base64

Use ['base64', 'rc4'] to randomly mix encodings for each string.

JavaScript

If string lookups slow down a large bundle, lower stringArrayThreshold (default 0.75; built-in presets set their own value, for example 1 in VM Default): it is the probability that a given string literal is moved into the array, and 0 is the same as turning stringArray off.