Docs
/
Basic Obfuscation
/

String Array

String Array

stringArray
Recommended

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.

// Before
const message = "Hello World";
const endpoint = "/api/users";

// After (with stringArray)
const _0x1a2b = ['Hello World', '/api/users'];
const message = _0x1a2b[0x0];
const endpoint = _0x1a2b[0x1];

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, ~30-50% slower runtime