You are here: irt.org | FAQ | JavaScript | General | Q442 [ previous next ]
There is no way to hide HTML or JavaScript from a determined person.
If the script in in a .js file, the script can be read by loading it directly and it can be downloaded by writing an HREF for it.
If the script comes from a CGI or is playing hard to get, a telnet to the server can sort that out.
There are however ways to obfuscate the script so it is difficult / impossible / not worth trying to read.
The following two shareware programs attempt to scramble the variable names and format the code
Jammer at http://www.geocities.com/SiliconValley/4274/jammer.htm.
JMyth at http://www.geocities.com/SiliconValley/Vista/5233/jmyth.htm.
Microsoft are investigating ways and means of encrypting JavaScript source code.