Jump to content

JScript.Encode

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Wenli (talk | contribs) at 01:56, 16 February 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

JScript.Encode is a method created by Microsoft used to encode JavaScript source code in order to protect the source code from copying[1]. JavaScript code is used for creating dynamic web content on many websites, with the source code easily viewable, so this was meant to protect the code.

How To Use

You can use a command line script encoder [1] to encode your scripts. To encode a HTML web-page file called default.htm, use the following command:

screnc.exe default.htm defaultenc.htm

It would output to a file called defaultenc.htm.

Weaknesses

It has been reverse engineered and many websites provide an on-the-fly decoder[2].

References