Application of disk ID in the ASP source protection copy (Z)

Source: Internet
Author: User
Tags access database security access database
The application of disk ID in the ASP source anti-copy
(Kong Xiangjun, Su Yujuan July 26, 2001 17:07)
Since the advent of ASP (Active Server Pages), ASP technology has been popular with more and more network programmers as it can create robust, maintainable, platform-independent applications, and more people are using ASP for Web development. But the ASP is only one kind of not compile, runs in the server side script language, uses the clear text (plain text) way to write, even if uses the ASP encryption program to encrypt the ASP source code, also may not guarantee that publishes to the running environment the ASP application does not have the illegal copy. For highly privileged administrators, you can easily copy ASP programs from the server side to other unauthorized web sites. This brings some difficulties to the application commercialization of ASP. How to effectively protect the developed ASP program, this paper based on the randomness of disk serial number, combined with Microsoft's official free ASP script Encryption program SCRENC.EXE, a good solution to this problem.
The disk serial number, referred to as the disk ID, is a randomly generated disk identification information when the disk is formatted, and is a volume serial number. Two times the same machine format randomly generated serial number of fixed format the same probability is almost zero, the later version of DOS and Windows, Winnt Use this disk identification, so the disk serial number is often used for commercial software for encryption. Switch from windows9.x to MS-DOS, type the dir command to return to, the screen appears the current volume label serial number information, this similar "0A48-1CD7" serial number is a 16 binary number. Some software that uses deadlines will require users to request a new license serial number (use license) online after the expiration date. This authorization sequence number is quite part of the use of static disk serial number combination of time generated. After installing the software, the program can not be used even if it is illegally copied to a non-initial installation environment.
These ideas with VC, VB and Deliphi programming language are easy to achieve, then, in the ASP how to achieve it? VBScript, as a robust, secure user language, is limited by the client system, cannot handle the API calls on the client, or directly manipulate the files and other controls on the client. So this paper uses VBScript and combines ASP built-in component filesystem to realize the above thought.
The following procedures can be applied to the actual ASP application system according to the specific situation.
As an example, this paper uses Access database security mechanism, in practical application, can be used in other formats of data stored in the file. To facilitate elaboration, we first built an Access database Id.mdb (the password is "KXJ"), built a driveinfo table, the data structure is as follows:
ID (autonumber);
Serno (text, 12, disk serial number (10));
Wrimark (number, 1, write disk sign,).

Description
The Wrimark value of 0 means that the legal user does not have a system installed, and a value of 1 indicates that the system is installed. When the value is 1 and the serial number does not match the current disk, the user is determined to be illegally copied.
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.