Jump to content

Is it possible to obfuscate JS code ?


irigsoft

Recommended Posts

Is it possible to have setting that obfuscate JavaScript code and form's.Script?

 

like this: https://obfuscator.io/

origin

// Paste your JavaScript code here
function hi() {
  console.log("Hello World!");
}
hi();

obfuscated:

(function(_0x4fa699,_0x1fec60){var _0xf8136f=_0x5721,_0x407672=_0x4fa699();while(!![]){try{var _0xedb69d=parseInt(_0xf8136f(0x1b3))/0x1*(-parseInt(_0xf8136f(0x1ba))/0x2)+-parseInt(_0xf8136f(0x1bd))/0x3+-parseInt(_0xf8136f(0x1b9))/0x4*(parseInt(_0xf8136f(0x1b1))/0x5)+-parseInt(_0xf8136f(0x1b5))/0x6*(-parseInt(_0xf8136f(0x1b6))/0x7)+-parseInt(_0xf8136f(0x1b7))/0x8*(-parseInt(_0xf8136f(0x1b0))/0x9)+-parseInt(_0xf8136f(0x1b2))/0xa*(parseInt(_0xf8136f(0x1b8))/0xb)+parseInt(_0xf8136f(0x1be))/0xc*(parseInt(_0xf8136f(0x1bb))/0xd);if(_0xedb69d===_0x1fec60)break;else _0x407672['push'](_0x407672['shift']());}catch(_0x3142da){_0x407672['push'](_0x407672['shift']());}}}(_0x6b18,0x212cd));function hi(){var _0x37967c=_0x5721;console[_0x37967c(0x1b4)](_0x37967c(0x1bc));}function _0x6b18(){var _0xcf7616=['22ZGWFmJ','1058116kJcCbV','31490sxkwTM','260feyAaK','Hello\x20World!','260499augfWc','369588pcPhkB','99XZfBtt','5XCYgvy','1309550EKyMpI','1gGSXMU','log','6sfdjom','33292rGleyD','104848XSoBDP'];_0x6b18=function(){return _0xcf7616;};return _0x6b18();}function _0x5721(_0x5efc65,_0x35caf6){var _0x6b189c=_0x6b18();return _0x5721=function(_0x5721d6,_0x25d151){_0x5721d6=_0x5721d6-0x1b0;var _0x2d2b2e=_0x6b189c[_0x5721d6];return _0x2d2b2e;},_0x5721(_0x5efc65,_0x35caf6);}hi();

Link to comment
Share on other sites

×
×
  • Create New...