I have a bookmarklet, and i want to hide/encode the JavaScript code within, something like a compiled code, so that the original code wont be available for the users of the bookmarklet;
Can i do this, and if yes, how ?
I have a bookmarklet, and i want to hide/encode the JavaScript code within, something like a compiled code, so that the original code wont be available for the users of the bookmarklet;
Can i do this, and if yes, how ?
Maybe this site can help you: http://www.javascriptobfuscator.com/
About it:
Free Javascript Obfuscator is a professional tool for obfuscation of javascript. It Converts JavaScript source code into scrambled and completely unreadable form, preventing it from analysing and theft.
I gave it this input test:
alert("Hello World")
Output:
var _0x7d3e=["\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64"];alert(_0x7d3e[0]);
You can test it in your Firefox Scratchpad (Shift + F4) or in Google Chrome console (F12).