Encrypting ASP Script source code with Script encoder

Source: Internet
Author: User
Tags valid microsoft frontpage
At present, the ASP (acive Server Pages) technology has been popular all over the world, on the internet almost everywhere can see its figure. It provides developers with intuitive, fast and efficient application development tools based on script, which greatly improves the development effect. By applying this technique, you can develop a professional dynamic Web site without having to do complex programming.
All things are advantageous to have the disadvantage, because because the ASP script is uses the clear text (plain text) way to write out, therefore the developer diligently develops the ASP application, once publishes to the running environment or delivers the user to use, it is very difficult to guarantee these "the source code" will not be spread out. How can we protect the ASP source code we developed?
Here we use a Microsoft-provided encryption Script program: SCRENC.EXE, this program can be downloaded from the author's website (http://www.zhengwei.net). This is a command tool that runs in DOS Promapt, which allows the scripting designer to encode the final script so that Web hosts and Web clients cannot view or modify their source code. One thing to note, though, is that the encrypted program requires the user's browser to use more than 5.0 versions of Internet Explorer. The completion of the encryption script becomes similar to the following:
  
The script encryption program encrypts only the script code, and the other contents of the file are not moved and are displayed in plain text. To use the Script encryption program, develop and debug the text in the usual way, and then use the utility to encrypt the final script.
The Script encryption program uses tags in the source code to identify where the encryption started.
For Visual Basic scripting Edition (VBScript), the following example shows how to use a coded tag to display the copyright information for normal text:
  
In JScript, the encryption token is as follows:
  
When the script encryption program is invoked, the contents of the script block remain unchanged until the start tag, while the other content is encrypted. Therefore, if the start tag is omitted, all content within the script encoding block is encrypted, but if the start tag is at the end of the script cipher block, no content is encrypted.
After the code has occurred. You should know that tags or tags contain valid HTML and inline script blocks. Applications that use this format include Microsoft? Internet Information Services (IIS). The recognized file name extension has. asp,. Asa and. CDX.
Html. The format consists of a text file that contains valid HTML and embedded script blocks. Applications written in this script format include Microsoft FrontPage?, Microsoft? Visual InterDev? And all virtual Web designers and browsers. The recognized file name extension has. htm and. html.
Plain text. The format consists of text files that contain only scripts and no two-sided markup. Applications written in this script format include Windows? Scripting Host (WSH) and Microsoft? Outlook?.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.