Script Encoder

I found this small application that Microsoft distributed. Until today, I have not used it for my project, but now it’s time to use it.
Here is a quick link to the application.

Once you download the application (its default path is usually c:\Program Files\Windows Script Encoder\ ), go to System properties -> Advanced -> Environment Variables. I prefer to add this path to Environment Variables since it will enable you to use the application any folders. By the way it’s command line application, which means you gotta type application name as well as a file name you want to encode. Anyhow, in the Environment Variables you want to add its path to “PATH” variable.

PATH C:\Program Files\Windows Script Encoder\

This link shows you how to use it.

When you want to encode your javascript source, you can use this way below:

screnc /l javascript /f yourFileName.html

/l javascript means that in a file if javascript attribute is not used, then block them. Meaning only tag with javascript attribute will be encoded.
In the how-to page, it didn’t show javaScript, but it works anyhow. :-)

But there is a problem to use this encoder. Guess what? There is decoder to scripts that are encoded by Windows Script Encoder. I won’t list links here.. If you want to use WindowScriptEncoder anyways, just use it and it will make script stealer to take more steps. ;-)

Comment are closed.