- JScript.Encode
JScript.Encode is a method created by
Microsoft used toencode both server and client-sideJavaScript orVB Script source code in order to protect thesource code fromcopying [ [http://www.microsoft.com/mind/0899/scriptengine/scriptengine.asp Script Encoding with the Microsoft Script Engine Version 5.0] ] . JavaScript code is used for creatingdynamic web content on many websites, with the source code easily viewable, so this was meant to protect the code.The encoding is a simple
polyalphabetic substitution using three alphabets.How To Use
You can use a
command line script encoder [http://www.microsoft.com/mind/0899/scriptengine/scriptengine.asp] to encode your scripts. To encode aHTML web-page file called default.htm, use the following command:screnc.exe default.htm defaultenc.htmIt would output to a file called defaultenc.htm.
Weaknesses
It has been reverse engineered [ [http://www.virtualconspiracy.com/content/articles/breaking-screnc Breaking the Windows Script Decoder] ] and many websites provide an on-the-fly decoder [ [http://www.virtualconspiracy.com/index.php?page=scrdec/intro Windows Script Decoder] ] .
References
External links
* [http://www.microsoft.com/downloads/details.aspx?familyid=E7877F67-C447-4873-B1B0-21F0626A6329&displaylang=en Download encoder]
* [http://www.virtualconspiracy.com/index.php?page=scrdec/intro Windows Script Decoder]
Wikimedia Foundation. 2010.