UNPKG

vanzy-protect

Version:

Epic Obfuscator Yeahhh

16 lines (15 loc) 478 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stringObfLvl1 = void 0; const fill_1 = require("../util/fill"); const pad = (x) => (0, fill_1.fill)(5 - x.length, '0') + x; function stringObfLvl1(str) { var out = '"'; str.split('').forEach((i) => { const code = i.charCodeAt(0); const thing = pad(code.toString(16)); out += '\\u' + thing; }); return out + '"'; } exports.stringObfLvl1 = stringObfLvl1;