Connecting Tech Pros Worldwide Help | Site Map

encrypt javascript

Member
 
Join Date: Mar 2008
Posts: 45
#1: Jul 24 '09
hi,
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

ex:

var a=1
if x==1 [ etc

thanks for your help
:)
Canabeez's Avatar
Member
 
Join Date: Jul 2009
Location: Israel
Posts: 85
#2: Jul 24 '09

re: encrypt javascript


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
gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,126
#3: Jul 25 '09

re: encrypt javascript


that's right ... and here is just a short overview of some ideas some people would have regarding that :)

kind regards
Canabeez's Avatar
Member
 
Join Date: Jul 2009
Location: Israel
Posts: 85
#4: Jul 25 '09

re: encrypt javascript


Quote:

Originally Posted by gits View Post

that's right ... and here is just a short overview of some ideas some people would have regarding that :)

kind regards

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... :)
Member
 
Join Date: Mar 2008
Posts: 45
#5: Jul 25 '09

re: encrypt javascript


thanks for your help
Reply


Similar JavaScript / Ajax / DHTML bytes