vanzy-protect
Version:
Epic Obfuscator Yeahhh
15 lines (14 loc) • 711 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringObfLvl3 = void 0;
const main_1 = require("../main");
const comment_1 = require("./comment");
const stringObfLvl2_1 = require("./stringObfLvl2");
function stringObfLvl3(str) {
if (str.length < 14)
return (0, stringObfLvl2_1.stringObfLvl2)(str);
const mid = Math.floor(str.length / 2);
const segs = [str.slice(0, mid), str.slice(mid)].map(i => (0, stringObfLvl2_1.stringObfLvl2)(i));
return `${(0, main_1.A_FNC_NAME)()}(${(0, comment_1.comment)(3)}${segs[1]}${(0, comment_1.comment)(3)},${(0, comment_1.comment)(3)}${segs[0]}${(0, comment_1.comment)(3)})`;
}
exports.stringObfLvl3 = stringObfLvl3;