Encrypt your ASP page with Script Encoder

zhaozj2021-02-11  222

Encrypt your ASP page with Script Encoder

For all, ASP technology has been loved by more and more friends, and more and more people who use ASP engaged in Web development. A very obvious feature of ASP is that the page sent to the browser after processing to the browser, which effectively protects the original code of the page program is not easily obtained by the client. But another universal existence is: Since the ASP page is stored in plain text, you can easily see all programming logic on the server side. This brings certain difficulties to ASP app commercialization. The method of solving is generally using component technology to encapsulate programming logic into the DLL, but the problem is: 1. If each code is set, it seems that workload is too big, and it is not necessary. 2. There are still many netizens who do not write components at all. In this context, Microsoft launched Script Encoder1.0. Script encryption tool for a command line. Script Encoder features: It only encrypts script code embedded in the page, other parts, such as HTML TAG still keeps the same. The partially encrypted part is read-only, and any modifications to the encryption section will result in the entire encrypted file. The Script Encoder encrypted ASP file will also fail to debug the script debugging tool such as Script Debugger. Script Encoder can encrypt Client Side Script or encrypted Server Side Script. Second, use the introduction Script Encoder is a command line tool, execute the file as screnc.exe. Its operation is very simple:

Screnc [/ s] [/ f] [/ xl] [/ l Deflanguage] InputFile OutputFile

/ s optional. Let the Script Encoder "quiet" work, that is, the execution process does not have a screen output. (

/ f is optional. Specifies whether the output file overwrites the same name input file. Ignore, it will not be performed. / XL is optional. Whether to add a @language instruction at the top of the .asp file. Ignore, will be added. / L Deflanguage optional. Specifies the default scripting language selected in the Script Encoder encryption. Scripts that do not contain this scripting language in the file will be ignored by Script Encoder. For HTML and script files, JScript is a built-in default scripting language. For ASP files, VBScript is the default scripting language. At the same time, there is adaptive capability for file Script Encoder with .vbs or .js. / E Defextension options. Specify the file extension of the file to be encrypted. By default, Script Encoder recognizes ASA, ASP, CDX, HTM, HTML, JS, SCT, and VBS files.

Third, common problems and precautions

1. Several error occurred in the Joy ASP to see some netizens using Script Encoder:

"Script Encoder Object <" scripting.encoder "> not found"

Cause: It is necessary to use Script Encoder to need Script Engine 5.0 or above's script engine support. There are two solutions, upgrade browsers to IE5 or install Script Engine 5.0.2, when encrypted global.asa, after encryption, access: Active Server Pages Error 'ASP 0137'

Invalid universal script

Global.asa, line 1

Script blocks must be one of the allowed Global.asa processes. <% ...%> Script primitives are not allowed in the global.asa file. The allowable process can only be Application_onstart, Application_ONEND, SESSION_ONSTART, or SESSION_ONEND.

The encrypted global.asa file is: <% @ language = vbscript.encode%>