79257601

Date: 2024-12-06 10:14:55
Score: 0.5
Natty:
Report link

I use two methods to hide my js code, atob and eval.

When my code is ready I encode it to Base64 (by online tool) and cut to many parts somewhere in code. Next I decode string and run eval(atob( codePart1 + codePart2 ))

  1. Write function to tmp file

    function myHideCode() { alert("ok") }; window.myHideCode = myHideCode

  2. Encode tmp file to Base64 (online tool) to variable e.g.

    var default_jpg = CAgICAgCiAgICBjb25zdCBnZXRSYW5kb21BcmJpdHJhcnkgPSAobWluLCBtYXgpID0=

  3. run somewhere in code

    eval( atob(default_jpg) );

  4. finally

    window.myHideCode();

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Blazej Kita