CN110837627A - Software copyright authentication method, system and equipment based on hard disk serial number - Google Patents
Software copyright authentication method, system and equipment based on hard disk serial number Download PDFInfo
- Publication number
- CN110837627A CN110837627A CN201910923958.0A CN201910923958A CN110837627A CN 110837627 A CN110837627 A CN 110837627A CN 201910923958 A CN201910923958 A CN 201910923958A CN 110837627 A CN110837627 A CN 110837627A
- Authority
- CN
- China
- Prior art keywords
- serial number
- software
- hard disk
- authentication
- authentication file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 18
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 6
- 238000013475 authorization Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 239000006227 byproduct Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000005067 remediation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
The software copyright authentication method, system and equipment based on the hard disk serial number, provided by the invention, have the uniqueness of the hard disk serial number, and are combined with the safety of an RSA + AES mixed encryption algorithm to be used for encrypting software.
Description
Technical Field
The invention relates to the technical field of software copyright authentication, in particular to a software copyright authentication method, a system and equipment based on a hard disk serial number.
Background
In recent years, with the rapid development of the internet and the popularization and the rapid development and the universal use of computer software, the phenomenon of copyright violation and crime of the computer software becomes increasingly prominent, domestic pirated software is common at present, and how to effectively protect the computer software becomes an important problem faced by many national governments at present.
At present, the domestic market divides software encryption technology into a hardware-based encryption mode and a software-based encryption mode.
The hardware-based encryption mode is mainly an encryption lock, and important information such as encryption keys, sensitive data, authorization files, custom algorithms and the like can be stored in the encryption lock. The encryption lock is divided into a parallel port and a USB port. Parallel ports were a form of early use and are now rarely used because of the inconvenience of plugging and unplugging and the conflict with printers. The encryption lock of the USB interface is mostly used at present. Although the hardware encryption lock has certain security intensity, the hardware encryption lock also has a plurality of disadvantages: electronic issuing, upgrading, tracking and management based on the Internet cannot be realized, once cracked, the electronic issuing, upgrading, tracking and management can be copied in large batch, and remediation is difficult.
The encryption mode based on software is mainly an electronic authorization technology, and a few companies can self-develop electronic authorization schemes in the domestic market, but the schemes developed by the companies usually have some problems: the software authorization method has the advantages that non-professional development exists, great holes exist in safety, flexible authorization control is difficult to achieve, management and statistical functions are very simple or are not available, and the software authorization method cannot meet new requirements for software authorization modes brought by rapid market changes.
Therefore, the existing software encryption technology is adopted to authenticate the software copyright, and a plurality of potential safety hazards still exist.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method, a system and a device for software copyright authentication based on a hard disk serial number. Because the hard disk serial number has uniqueness, the hard disk serial number is combined with the safety of an RSA + AES mixed encryption algorithm to be used for encrypting software, and the safety of software copyright authentication is improved.
In order to achieve the purpose, the invention is realized by the following technical scheme: a software copyright authentication method, system and device based on hard disk serial number includes the following steps:
s1: starting software needing copyright authentication;
s2: reading a hard disk serial number of a user computer and displaying the serial number in a text box;
s3: automatically searching for an authentication file according to a preset path, and judging whether the authentication file exists or not; if not, go to step S4; if yes, go to step S6;
s4: the user sends the hard disk serial number to a software developer, the software developer conducts software encryption according to the hard disk serial number to generate an authentication file, and the authentication file and an appointed storage path of the authentication file are sent to the user;
s5: the user saves the authentication file according to a preset path;
s6: reading a serial number in the authentication file;
s7: decrypting the serial number in the authentication file and generating a decryption result;
s8: judging whether the decryption result is consistent with the hard disk serial number of the user computer; if so, the software is legal software, and an installation program of the software is operated; if not, the software is pirate software and is directly quitted.
Further, in step S4, the software developer encrypts the software according to the hard disk serial number to generate an authentication file specifically as follows:
a software developer obtains number1 after the hard disk serial number ID1 is in a reverse order;
encrypting number1 by RSA + AES mixed algorithm to obtain a serial number ID 2;
the serial number ID2 is written in a preset frame of the authentication file, and the authentication file is generated.
Further, the step S7 specifically includes:
reading the serial number ID2 in the authentication file;
decrypting the serial number ID2 by using an RSA + AES mixed algorithm to obtain number 1;
and the number1 is subjected to reverse order to obtain a hard disk serial number ID 1.
Further, in step S8, the specific step of determining whether the decryption result is consistent with the serial number of the hard disk of the user computer is:
it is determined whether the disk serial number ID1 matches the disk serial number of the user's computer.
Correspondingly, the invention also discloses a software copyright authentication system based on the hard disk serial number, which comprises the following components:
the starting unit is used for starting software needing copyright authentication;
the display unit is used for reading the hard disk serial number of the user computer and displaying the serial number in the text box;
the searching unit is used for automatically searching the authentication file according to a preset path and judging whether the authentication file exists or not;
the encryption unit is used for encrypting software by a software developer according to the serial number of the hard disk to generate an authentication file;
the decryption unit is used for decrypting the serial number in the authentication file and generating a decryption result;
the judging unit is used for judging whether the decryption result is consistent with the hard disk serial number of the user computer; if yes, judging the software to be legal software; if not, judging the software to be pirate software.
Further, the encryption unit includes:
the first transcoding module is used for obtaining number1 after a software developer reverses the sequence of the hard disk serial number ID 1;
the encryption calculation module is used for encrypting the number1 by using an RSA + AES mixed algorithm to obtain a serial number ID 2;
and the generating module is used for writing the serial number ID2 into a preset frame of the authentication file to generate the authentication file.
Further, the decryption unit includes:
the reading module is used for reading the serial number ID2 in the authentication file;
the decryption calculation module is used for decrypting the serial number ID2 by using an RSA + AES mixed algorithm to obtain number 1;
and the second transcoding module is used for obtaining the hard disk serial number ID1 after the number1 is subjected to reverse order.
Correspondingly, the invention also discloses a software copyright authentication device based on the hard disk serial number, which comprises: a memory for storing a computer program;
and the processor is used for realizing the steps of the software copyright authentication method based on the hard disk serial number according to any one of the above items when executing the computer program.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a software copyright authentication method, a system and equipment based on a hard disk serial number, wherein the uniqueness of the hard disk serial number is combined with the safety of an RSA + AES mixed encryption algorithm to be used for encrypting software, and the software copyright authentication is carried out by the software encryption technology, so that the double safety of software encryption is improved, the intellectual property of the software is protected, pirated software is attacked, and the effective protection is carried out on computer software, and in addition, the defects of software encryption side products in some markets in the aspects of usability, safety and the like can be overcome.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of the method of the present invention.
Fig. 2 is a system block diagram of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings.
As shown in fig. 1, the present invention provides a software copyright authentication method based on a hard disk serial number, which includes the following steps:
s1: and starting software needing copyright authentication.
S2: and reading the serial number of the hard disk of the user computer and displaying the serial number in the text box.
In the hardware information of the user computer, the information such as the CPU serial number, the BIOS serial number, the network card number, the computer name and the like of the network card MAC address can distinguish the computer, but some information is unreliable, for example, part of the computer does not have the network card or some old-model CPUs, and the information such as the network card MAC address or the CPU serial number cannot be obtained. Compared with hardware information, the serial number of the hard disk exists in a control chip of the hard disk, and generally cannot be modified, the hard disk is configured by default before leaving a factory, and the serial number of the hard disk has the advantages of uniqueness, non-variability, stability and the like, so that the serial number of the hard disk is selected as an encryption characteristic value.
S3: automatically searching for an authentication file according to a preset path, and judging whether the authentication file exists or not; if not, go to step S4; if so, go to step S6.
S4: the user sends the hard disk serial number to a software developer, the software developer conducts software encryption according to the hard disk serial number to generate an authentication file, and the authentication file and the specified storage path of the authentication file are sent to the user.
The software developer encrypts the software according to the hard disk serial number to generate the authentication file specifically as follows:
firstly, a software developer obtains number1 by reversing the sequence of a hard disk serial number ID 1; then, encrypting number1 by RSA + AES mixed algorithm to obtain a serial number ID 2; finally, the serial number ID2 is written into a preset frame of the authentication file, and the authentication file is generated.
The RSA + AES mixed algorithm adopts the secret key of the RSA encryption AES and adopts the AES to encrypt data, so that the advantages of the two encryption algorithms are integrated, the data encryption speed is guaranteed, and safe and convenient secret key management is realized. Generally, the longer the key length, the higher the security, but the slower the encryption speed. Therefore, the key length is also reasonably selected, and the general RSA proposes to use a 1024-bit digital key, and the AES proposes to use a 128-bit key.
S5: and the user saves the authentication file according to a preset path.
S6: and reading the serial number in the authentication file.
S7: and decrypting the serial number in the authentication file and generating a decryption result.
The specific process is as follows: first, the serial number ID2 in the authentication file is read; then, the serial number ID2 is decrypted by using an RSA + AES mixed algorithm to obtain number 1; and finally, the number1 is subjected to reverse order to obtain the hard disk serial number ID 1.
S8: judging whether the decryption result is consistent with the hard disk serial number of the user computer; if so, the software is legal software, and an installation program of the software is operated; if not, the software is pirate software and is directly quitted.
The decryption result is the hard disk serial number ID1 obtained by reversing the number1 in step S7.
Correspondingly, as shown in fig. 2, the present invention also discloses a software copyright authentication system based on the hard disk serial number, which includes:
and the starting unit is used for starting the software which needs copyright authentication.
And the display unit is used for reading the hard disk serial number of the user computer and displaying the serial number in the text box.
And the searching unit is used for automatically searching the authentication file according to a preset path and judging whether the authentication file exists.
And the encryption unit is used for encrypting the software by the software developer according to the serial number of the hard disk to generate an authentication file. The encryption unit includes: the first transcoding module is used for obtaining number1 after a software developer reverses the sequence of the hard disk serial number ID 1; the encryption calculation module is used for encrypting the number1 by using an RSA + AES mixed algorithm to obtain a serial number ID 2; and the generating module is used for writing the serial number ID2 into a preset frame of the authentication file to generate the authentication file.
And the decryption unit is used for decrypting the serial number in the authentication file and generating a decryption result. The decryption unit includes: the reading module is used for reading the serial number ID2 in the authentication file; the decryption calculation module is used for decrypting the serial number ID2 by using an RSA + AES mixed algorithm to obtain number 1; and the second transcoding module is used for obtaining the hard disk serial number ID1 after the number1 is subjected to reverse order.
The judging unit is used for judging whether the decryption result is consistent with the hard disk serial number of the user computer; if yes, judging the software to be legal software; if not, judging the software to be pirate software.
Correspondingly, the invention also discloses a software copyright authentication device based on the hard disk serial number, which comprises: a memory for storing a computer program;
and the processor is used for realizing the steps of the software copyright authentication method based on the hard disk serial number according to any one of the above items when executing the computer program.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention. The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
Similarly, each functional unit in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one unit.
The invention is further described with reference to the accompanying drawings and specific embodiments. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention may be made by those skilled in the art after reading the teaching of the present invention, and these equivalents also fall within the scope of the present application.
Claims (8)
1. A software copyright authentication method based on a hard disk serial number is characterized by comprising the following steps:
s1: starting software needing copyright authentication;
s2: reading a hard disk serial number of a user computer and displaying the serial number in a text box;
s3: automatically searching for an authentication file according to a preset path, and judging whether the authentication file exists or not; if not, go to step S4; if yes, go to step S6;
s4: the user sends the hard disk serial number to a software developer, the software developer conducts software encryption according to the hard disk serial number to generate an authentication file, and the authentication file and an appointed storage path of the authentication file are sent to the user;
s5: the user saves the authentication file according to a preset path;
s6: reading a serial number in the authentication file;
s7: decrypting the serial number in the authentication file and generating a decryption result;
s8: judging whether the decryption result is consistent with the hard disk serial number of the user computer; if so, the software is legal software, and an installation program of the software is operated; if not, the software is pirate software and is directly quitted.
2. The method for authenticating software copyright based on the hard disk serial number according to claim 1, wherein in the step S4, the step of encrypting the software by the software developer according to the hard disk serial number to generate the authentication file specifically comprises: a software developer obtains number1 after the hard disk serial number ID1 is in a reverse order;
encrypting number1 by RSA + AES mixed algorithm to obtain a serial number ID 2;
the serial number ID2 is written in a preset frame of the authentication file, and the authentication file is generated.
3. The software copyright authentication method based on the hard disk serial number according to claim 2, wherein the step S7 specifically comprises:
reading the serial number ID2 in the authentication file;
decrypting the serial number ID2 by using an RSA + AES mixed algorithm to obtain number 1;
and the number1 is subjected to reverse order to obtain a hard disk serial number ID 1.
4. The method for authenticating software copyright based on the hard disk serial number according to claim 3, wherein the step S8 of determining whether the decryption result is consistent with the hard disk serial number of the user computer specifically comprises:
it is determined whether the disk serial number ID1 matches the disk serial number of the user's computer.
5. A software copyright authentication system based on a hard disk serial number is characterized by comprising:
the starting unit is used for starting software needing copyright authentication;
the display unit is used for reading the hard disk serial number of the user computer and displaying the serial number in the text box;
the searching unit is used for automatically searching the authentication file according to a preset path and judging whether the authentication file exists or not;
the encryption unit is used for encrypting software by a software developer according to the serial number of the hard disk to generate an authentication file;
the decryption unit is used for decrypting the serial number in the authentication file and generating a decryption result;
the judging unit is used for judging whether the decryption result is consistent with the hard disk serial number of the user computer; if yes, judging the software to be legal software; if not, judging the software to be pirate software.
6. The hard disk serial number-based software copyright authentication system according to claim 5, wherein the encryption unit comprises:
the first transcoding module is used for obtaining number1 after a software developer reverses the sequence of the hard disk serial number ID 1;
the encryption calculation module is used for encrypting the number1 by using an RSA + AES mixed algorithm to obtain a serial number ID 2;
and the generating module is used for writing the serial number ID2 into a preset frame of the authentication file to generate the authentication file.
7. The hard disk serial number-based software copyright authentication system according to claim 6, wherein the decryption unit comprises:
the reading module is used for reading the serial number ID2 in the authentication file;
the decryption calculation module is used for decrypting the serial number ID2 by using an RSA + AES mixed algorithm to obtain number 1; and the second transcoding module is used for obtaining the hard disk serial number ID1 after the number1 is subjected to reverse order.
8. A software copyright authentication device based on a hard disk serial number is characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the software copyright authentication method based on the hard disk serial number according to any one of claims 1 to 4 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910923958.0A CN110837627A (en) | 2019-09-27 | 2019-09-27 | Software copyright authentication method, system and equipment based on hard disk serial number |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910923958.0A CN110837627A (en) | 2019-09-27 | 2019-09-27 | Software copyright authentication method, system and equipment based on hard disk serial number |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110837627A true CN110837627A (en) | 2020-02-25 |
Family
ID=69575336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910923958.0A Pending CN110837627A (en) | 2019-09-27 | 2019-09-27 | Software copyright authentication method, system and equipment based on hard disk serial number |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110837627A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116010906A (en) * | 2022-11-09 | 2023-04-25 | 北京新数科技有限公司 | RSA-based database performance monitoring software encryption method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050050347A1 (en) * | 2003-09-03 | 2005-03-03 | Min-Chih Hsuan | System, method and chip for hardware detection of illegal software user, computer system having hardware detection chip thereof and a software registration center |
CN102208003A (en) * | 2010-03-31 | 2011-10-05 | 鸿富锦精密工业(深圳)有限公司 | Software program protection system and method |
CN103605919A (en) * | 2013-11-27 | 2014-02-26 | 北京锐安科技有限公司 | Method and device for generating software authentication files and method and device for authenticating software |
-
2019
- 2019-09-27 CN CN201910923958.0A patent/CN110837627A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050050347A1 (en) * | 2003-09-03 | 2005-03-03 | Min-Chih Hsuan | System, method and chip for hardware detection of illegal software user, computer system having hardware detection chip thereof and a software registration center |
CN102208003A (en) * | 2010-03-31 | 2011-10-05 | 鸿富锦精密工业(深圳)有限公司 | Software program protection system and method |
CN103605919A (en) * | 2013-11-27 | 2014-02-26 | 北京锐安科技有限公司 | Method and device for generating software authentication files and method and device for authenticating software |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116010906A (en) * | 2022-11-09 | 2023-04-25 | 北京新数科技有限公司 | RSA-based database performance monitoring software encryption method |
CN116010906B (en) * | 2022-11-09 | 2023-12-29 | 北京新数科技有限公司 | RSA-based database performance monitoring software encryption method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108475237B (en) | Memory operation encryption | |
US10769311B2 (en) | Encrypting portable media system and method of operation thereof | |
US10097349B2 (en) | Systems and methods for protecting symmetric encryption keys | |
KR102013841B1 (en) | Method of managing key for secure storage of data, and and apparatus there-of | |
CN101551784B (en) | Method and device for encrypting data in ATA memory device with USB interface | |
US10027640B2 (en) | Secure data re-encryption | |
JP4999191B2 (en) | Secure information storage system and method | |
CN108090366B (en) | Data protection method and device, computer device and readable storage medium | |
JP2006244486A (en) | Method for forming right of use for item on bases of access right and computer readable medium | |
CN1996328A (en) | Portable information safety device | |
US20050154890A1 (en) | Method for secure key exchange | |
US20190044709A1 (en) | Incorporating software date information into a key exchange protocol to reduce software tampering | |
CN101447009A (en) | Method, device and system for installing software | |
CN101447013A (en) | Method, device and system for running software | |
CN111177773A (en) | Full disk encryption and decryption method and system based on network card ROM | |
CN112711764A (en) | Data reading and writing method and device and electronic equipment | |
CN113449349A (en) | Platform security mechanism | |
CN110837627A (en) | Software copyright authentication method, system and equipment based on hard disk serial number | |
KR101043255B1 (en) | Usb hub device for providing datasecurity and method for providing datasecurity using the same | |
CN107861892B (en) | Method and terminal for realizing data processing | |
CN113158203B (en) | SOC chip, circuit and external data read-write method of SOC chip | |
CN112287415B (en) | USB storage device access control method, system, medium, device and application | |
US20060020785A1 (en) | Secure distribution of a video card public key | |
KR20100015077A (en) | Apparatus and method for encryption in system on chip | |
CN215219695U (en) | Data security device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200225 |
|
RJ01 | Rejection of invention patent application after publication |