文字列配列
stringArray
Recommended
stringArray オプションはデフォルトで有効になっており、ほとんどの難読化の基礎となります。文字列リテラルを抽出し、専用の配列に配置します。
// 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];
エンコードは文字列をエンコードすることで、もう一段階の保護を追加します:
none- エンコードなし。文字列はそのまま保存されますbase64- 高速なエンコード。中程度の保護rc4- より強力な保護。実行時が約 30~50% 遅くなります
