How to hide or encrypt javascript codes

by 4 replies
9
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?
#programming #codes #encrypt #hide #javascript
  • 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...
  • 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.
  • Hi,
    The Steps to encrypt java script is given below

  • 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.

Next Topics on Trending Feed