JScript.Encode is a method created by
Microsoft
Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
used to
obfuscate
Obfuscation is the wikt:obscure#Verb, obscuring of the intended meaning (linguistics), meaning of communication by making the message difficult to understand, usually with mental confusion, confusing and ambiguity, ambiguous language. The obfusca ...
both server and
Client-side JavaScript or
VB Script source code in order to protect the
source code
In computing, source code, or simply code or source, is a plain text computer program written in a programming language. A programmer writes the human readable source code to control the behavior of a computer.
Since a computer, at base, only ...
from
copying
Copying is the duplication of information or an wiktionary:artifact, artifact based on an instance of that information or artifact, and not using the process that originally generated it. With Analog device, analog forms of information, copying is ...
.
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
A
command line
A command-line interface (CLI) is a means of interacting with software via command (computing), commands each formatted as a line of text. Command-line interfaces emerged in the mid-1960s, on computer terminals, as an interactive and more user ...
script encoder can be used to encode scripts.
To encode a
HTML
Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets ( ...
web-page file called , use the following command:
screnc.exe default.htm defaultenc.htm
It would output to a file called .
Weaknesses
It has been
reverse engineered
Reverse engineering (also known as backwards engineering or back engineering) is a process or method through which one attempts to understand through deductive reasoning how a previously made device, process, system, or piece of software accompl ...
and many websites provide an on-the-fly decoder.
References
External links
Windows Script Decoder
Internet Explorer
{{windows-stub