|
|
Q442 How can I hide the JavaScript source code from "view source" function of the browser?
irt.org | Knowledge Base | JavaScript | General | Q442 [ previous next ] Q442 How can I hide the JavaScript source code from "view source" function of the browser?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. Feedback on 'Q442 How can I hide the JavaScript source code from "view source" function of the browser?' |
-- div -->
|