How to hide or encrypt javascript codes

4 replies
I know how to encrypt html codes but I don't know how to encrypt javascript codes is there a website that can encrypt a javascipt codes?
#codes #encrypt #hide #javascript
  • Profile picture of the author alv22
    You can obfuscate JavaScript but ultimately, you can't hide it completely, and the obfuscations are always mostly reversible. This is true with HTML too.

    Javascript Obfuscator - Google Search

    Here's a google search. The first few links should get you started.
    After all, it's better to teach a man to fish...
    {{ DiscussionBoard.errors[3357795].message }}
  • Profile picture of the author nxtgencreative
    You could encrypt the code and then decrypt the code in the browser. Then use eval() to execute the code. However this will be as useful at hiding the javascript code as obfuscation.
    {{ DiscussionBoard.errors[3359188].message }}
  • Profile picture of the author godwinsam
    Hi,
    The Steps to encrypt java script is given below

    'Select file' if you want to encrypt a single file.

    'Select folder' to encrypt all files in that folder at once. Only *.htm, *.html, *.shtm, *.shtml, *.stn, *.js, *.vbs, *.asp, *.inc and *.php files inside the selected folder will be encrypted, everything else will remain unchange.

    Paste' to paste code for encryption from the clipboard. You should correctly specify the type of the code you want to protect - html, javascript, asp etc. in the code type selection dialog that will pop up.
    {{ DiscussionBoard.errors[3383705].message }}
  • Profile picture of the author AubreyWebWhiz
    Hi,

    Here's a link of nice forum that can help you with encrypting the javascript codes.

    How to encrypt Javascript?

    Hope this helps!

    Best,

    A.
    {{ DiscussionBoard.errors[3455312].message }}

Trending Topics