JScript.Encode

JScript.Encode is a method created by Microsoft used to encode both server and Client-side JavaScript or VB Script 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.

The encoding is a simple polyalphabetic substitution using three alphabets.

How to use

You can use a command line script encoder 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 [2] and many websites provide an on-the-fly decoder.[3]

References

External links

This article is issued from Wikipedia - version of the Sunday, September 20, 2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.