To effectively prevent ASP source leakage, an ASP page can be encrypted. There are generally two ways to encrypt the ASP page. One is to use component technology to program
The logic is encapsulated into the DLL; the other is to encrypt the ASP page using Microsoft Script Encoder. The author believes that the main problem exists in component technology
It is a component of each code, and the operation is more cumbersome, the workload is large; and the Script Encod is encrypted with the ASP page, the operation is simple, and the effect is good.
The Script Encoder method has many advantages:
1.Html still has good editable. Script Encoder only encrypts ASP code embedded in the HTML page, and other parts remain unchanged, which makes us
You can still use the common web editing tools such as FrontPage or Dreamweaver to modify the HTML section, but cannot repair the ASP encryption part.
Change, otherwise it will cause file failure.
2. Simple operation. Just master a few command line parameters. Script Encoder running program is Screnc.exe, which is as follows:
Screnc [/ s] [/ f] [/ xl] [/ l Deflanguage] InputFile OutputFile
The parameters are as follows:
S: Shield screen output;
f: Specify whether the output file overwrites the same name input file;
XL: Do you add an @language command at the top of the .asp file;
l: DeflanguAg Specifies the default scripting language;
E: Defextension Specifies the extension of the file to be encrypted.
3. Encrypted files in batches. Using Script Encoder can encrypt all ASP files in the current directory, and output the encrypted file to
In the corresponding directory. E.g:
Screnc * .asp C: / Temp
4. Script Encoder is a free software. The encryption software can download from Microsoft website:
Http://msdn.microsoft.com/scripting/vbscript/download/x86/sce10en.exe. After download, run the installation.