By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,720 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

encrypt javascript

P: 59
i have this code for example in my html or in a .js file
and i want know if there is some way to encrypt or dificult the reading
by humans


var a=1
if x==1 [ etc

thanks for your help
Jul 24 '09 #1
Share this Question
Share on Google+
4 Replies

P: 126
Well it's called obfuscation (not encoding), there are lots of software that can do this and even some online tools (here's an example of one of them). Just google for javascript obfuscator, I'm sure you'll find something that fits your needs in there.

Good Luck
Jul 24 '09 #2

Expert Mod 5K+
P: 5,390
that's right ... and here is just a short overview of some ideas some people would have regarding that :)

kind regards
Jul 25 '09 #3

P: 126
Cute idea to hide the script, stupid, but cute, didn't he ever hear of HttpAnalyzer (or any other http sniffer)? If I'll get to his website I'll see anything the browser gets, whatever he wants it or not... :)
Jul 25 '09 #4

P: 59
thanks for your help
Jul 25 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.