Is there any JS library to obscure string manipula

2019-06-14 00:00发布

问题:

I'd like to make the string manipulation as obscured as possible.

Now I wrote a small function made HEX string from the original string (the length of the result is twice as the length of the original). But even after the uglification the code is too simple to be understood by the hacker.

Is there any library which will convert the string to is self (= will not made any changes or made minor changes to the original) with very obscured code?

回答1:

May be these tools might help you:

  1. Javascript Obfuscator

  2. Javascript Encoder

  3. Javascript & jQuery Obfuscator Tool


回答2:

I found this powerful obfuscator:

http://www.js-x.com/page/javascripts__example.html?view=1109

It includes the possibility to bind Javascript to a single website (if code is downloaded, it won't work).

Here's the live demo: http://www.js-examples.com/page/javascripts__example.html?run=1109