ASP source code encryption

xiaoxiao2021-03-06  94

Encrypt ASP with MS Script ENCODE

Author: Unknown Updated: Legume Source: ddvip.net Update Time: 2004.08.06 Contributor mail: tg * ddvip.com Active Server Page technology application developers to provide a script based on an intuitive, fast and efficient application development tool for pole Land has improved the effect of development. However, since the ASP script is written in the plain text, the ASP application developer has worked hard, it is difficult to ensure that these "source code" will not be circulated once it is released to the running environment. Go out. This creates how to effectively protect the needs of the developed ASP script source code. The ASP Running Mechanism ASP script is a series of text formats composed of scripts that are composed of scripts that are mixed together with standard HTML pages with a specific syntax (currently supporting VBScript and JScript two scripting languages). When the client's end user uses a web browser to access an ASP script-based app, the web browser will send an HTTP request to the Web server. Web server analysis, judging that the request is an application of the ASP script, and automatically calls the ASP script to interpret the ASP script through the ISAPI interface. Asp.dll will get the specified ASP script file from the file system or internal buffer, and then perform grammatical analysis and explain the execution. The final processing result will form the content of the HTML format, return to the web browser through the web server "original road", and the web browser forms the final result in the client. This completes a complete ASP script call. Several organic ASP script calls constitute a complete ASP script application. Official encryption program: Download free download to SCE10chs.exe from Microsoft to run the installation process. After installation, the Screnc.exe file will be generated, which is a command tool running on DOS ProPt. Running Screnc - l vbscript source.asp destination.asp Generates new file Destination.asp containing ciphertext ASP scripts Use Notepad to open a "", regardless of whether it is annotated, it has become unrelated cixed, but Unable to encrypt Chinese. Several ASP source code protection methods: 1. "Script Minimize", only write only as possible to the Source code as possible, and implement the business logic's script section to be encapsulated into a COM / DCOM component and create it in the ASP script. Components, thereby calling the corresponding method. Before using developers to develop an ASP script application, you can develop the prototype system directly to quickly develop the prototype system with the ASP script, and use the COM / DCOM component to re-develop, implement and replace it with the COM / DCOM components for important scripts that need to protect, encrypted. 2, "Script Encryption", the ASP script is still developed directly according to the source code, but the script is encrypted before issuing the runtime environment, as long as the encrypted ciphertext script is released. That is, the process of reading the ciphertext reduction is added to the ASP.DLL read script. There are two ways to implement this idea: First, develop a IS Filter block that you can develop, and read (hook) to the ASP script file before the ASP.DLL, so that the file system reads the ciphertext It is clear that it can be explained as ASP.DLL; method nine nine is to provide support from ASP.DLL to ASP scripting encryption processing. Microsoft provides this support for MS Script Encode technology in the new version of VBScript.dll JScript.dll.

In this way, whether the client's VBScript JScript (including WSH script, etc.) or the server-side VBScript JScript (ie, ASP script) can support encryption processing.