A method, device, equipment and product for website licensing

Through asymmetric encryption key pairs and two-factor verification mechanisms, machine codes and license codes are generated to ensure that the website operates within the scope of use, solving the problem of licensing in the existing technology that is easy to decipher, and improving the security and knowledge of the website Property rights protection.

CN114448635BActive Publication Date: 2024-11-19INSPUR COMM TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210173999.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-24
Publication Date
2024-11-19
Estimated Expiration
2042-02-24

AI Technical Summary

Technical Problem

Existing website license verification technology is prone to deciphering, resulting in the invalid control of the website operation of the license, resulting in low security and inability to effectively protect intellectual property rights.

Method used

Asymmetric encryption key pair is used to generate machine codes for the server and license codes for the web page. The two-factor verification mechanism ensures that the website runs within the scope of use, and the RSA algorithm is used for encryption and decryption verification.

Benefits of technology

Improve the security of the website, ensure strict protection and declaration of intellectual property rights, and prevent unauthorized use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114448635B_ABST
    Figure CN114448635B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and product for website licensing, which relates to the field of website security technology. The method includes the following steps: generating a first key pair and a second key pair for asymmetric encryption; wherein the first key pair is applied to a server, and the second key pair is applied to a web page; generating a machine code for representing the hardware information of the server and a license code for representing the use limit of a website; wherein the license code contains information of the machine code; generating and verifying a server license based on the first key pair, and generating and verifying a web page license based on the second key pair; determining that both the server license and the web page license are successfully verified, and the website is licensed to be used within the use limit. The present invention uses dual license verification in collaboration between the website server and the web page, so that the website is used within the licensed scope, improves the security of the website, and thereby achieves stricter protection and declaration of the website's intellectual property rights.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of website security technology, and in particular to a method, device, equipment and product for website authorization. Background Art

[0002] Websites with copyright functions need to carry out licensing management and control of the website to protect and declare the intellectual property rights involved in the website.

[0003] At present, the license verification technology of website applications is usually performed on the server side. However, since most development languages ​​on the market are open source, the source code can be obtained through decompilation tools to decipher the license key pair, causing the license's control over the website operation to fail, resulting in low security of website licenses. Summary of the invention

[0004] The present invention provides a method, device, equipment and product for website licensing, which are used to solve the defect in the prior art that the license can be easily deciphered, resulting in the failure of the license to control the website operation, thereby improving the security of the website and thereby achieving stricter protection and declaration of the website's intellectual property rights.

[0005] The present invention provides a method for website permission, comprising the following steps:

[0006] Generate a first key pair and a second key pair for asymmetric encryption; wherein the first key pair is applied to the server side, and the second key pair is applied to the web page side;

[0007] Generate a machine code for representing the hardware information of the server and a license code for representing the usage restrictions of the website; wherein the license code includes information of the machine code;

[0008] Generate and verify a server-side license based on the first key pair, and generate and verify a web-side license based on the second key pair;

[0009] It is determined that both the server-side license and the web-side license are successfully verified, and the website is permitted to be used within the scope of the usage restrictions.

[0010] According to the website licensing method provided by the present invention, the generating of the machine code for representing the hardware information of the server and the licensing code for representing the usage limitation of the website specifically includes the following steps:

[0011] Determining the hardware information, and generating the machine code on the server based on the hardware information;

[0012] The usage restriction is determined, and based on the usage restriction and the machine code, the permission code is generated on the web page.

[0013] According to the website licensing method provided by the present invention, the generating and verifying of the server-side license based on the first key pair, and the generating and verifying of the web-side license based on the second key pair specifically include the following steps:

[0014] Encrypting the machine code based on the server private key in the first key pair to obtain permission from the server;

[0015] decrypting and verifying the server license based on the server public key in the first key pair;

[0016] Encrypting the license code based on the webpage private key in the second key pair to obtain the webpage license;

[0017] The server license is decrypted and verified based on the server public key in the second key pair.

[0018] According to the website licensing method provided by the present invention, the determination that both the server-side license and the web-side license are successfully verified and the website is licensed for use within the limited scope of use specifically includes the following steps:

[0019] When the server information obtained after decryption of the server license matches the hardware information, determining that the server license is successfully verified;

[0020] When the web page information obtained after decryption of the web page license is within the usage limit, determining that the web page license is successfully verified;

[0021] When both the server-side license and the web-side license are successfully verified, the website is permitted to be used within the scope of the usage restrictions.

[0022] According to the website permission method provided by the present invention, the method further comprises the following steps:

[0023] When the server-side license and / or the web-side license are not successfully verified, the website is not allowed to be used.

[0024] According to the website licensing method provided by the present invention, the machine code, the licensing code, the server-side licensing and the web-side licensing are in JSON format and are represented in the form of strings.

[0025] The present invention also provides a website permission device, comprising:

[0026] A first generating module, used to generate a first key pair and a second key pair for asymmetric encryption; wherein the first key pair is applied to the server, and the second key pair is applied to the web page;

[0027] A second generating module is used to generate a machine code for representing the hardware information of the server and a license code for representing the usage limitation of the website; wherein the license code includes the information of the machine code;

[0028] A dual verification module, configured to generate and verify a server-side license based on the first key pair, and to generate and verify a web-side license based on the second key pair;

[0029] The first licensing module is used to determine that both the server-side license and the web-side license are successfully verified, and the website is permitted to be used within the limited scope of use.

[0030] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned website licensing methods are implemented.

[0031] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned website licensing methods are implemented.

[0032] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any one of the above-mentioned website licensing methods are implemented.

[0033] The website licensing method, device, equipment and product provided by the present invention address the security issues of website licensing by utilizing the generated first key pair and second key pair to encrypt and verify the hardware information of the server and the usage restrictions of the website respectively. Different from the traditional website licensing method, the licensing verification on the web page is added. Therefore, the present invention uses dual licensing verification in collaboration between the website server and the web page, so that the website can be used within the licensed scope, thereby improving the security of the website and achieving stricter protection and declaration of the website's intellectual property rights. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is one of the flow charts of the website permission method provided by the present invention;

[0036] Figure 2It is a specific flow chart of step S200 in the website permission method provided by the present invention;

[0037] Figure 3 It is a specific flow chart of step S300 in the website permission method provided by the present invention;

[0038] Figure 4 It is a specific flow chart of step S400 in the website permission method provided by the present invention;

[0039] Figure 5 This is the second flow chart of the website permission method provided by the present invention;

[0040] Figure 6 It is one of the structural schematic diagrams of the device for website permission provided by the present invention;

[0041] Figure 7 It is a specific structural diagram of the second generation module in the device for website permission provided by the present invention;

[0042] Figure 8 It is a specific structural diagram of a double verification module in a website permission device provided by the present invention;

[0043] Fig. 9 It is a specific structural diagram of the first permission module in the website permission device provided by the present invention;

[0044] Fig.10 This is the second flow chart of the website permission method provided by the present invention;

[0045] Fig.11 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] Combine the following Figure 1 The method of website authorization of the present invention is described, and the method comprises the following steps:

[0048] S100, generate a first key pair and a second key pair for asymmetric encryption. In the present application, the first key pair is applied to the server, and the second key pair is applied to the web page.

[0049] It is understandable that the server in the present application refers to the website server, and the web page refers to the website web page. In some possible embodiments, the website license issuing end uses the RSA algorithm to generate two sets of key pairs, namely, the first key pair and the second key pair of asymmetric encryption, wherein the first key pair is used for encryption, decryption and verification of server information, and the first key pair specifically includes the server public key and the server private key, and the second key pair is used for encryption, decryption and verification of web page information, and the second key pair specifically includes the web page public key and the web page private key.

[0050] S200, generating a machine code for representing hardware information of the server and a license code for representing usage restrictions of the website. In the present application, the license code includes information of the machine code.

[0051] In this embodiment, the hardware information of the server includes information such as the central processing unit (CPU) and operating system information, wherein the operating system information only includes hardware-related information, such as Linux version 3.10.0-1160.31.1.el7.x86_64; the usage restriction includes information on relevant restriction conditions for the use of the website, such as the website's usage time, usage scope, and number of registered users of the website, and the restriction conditions for the use of the website are also the permitted scope of the website's use.

[0052] In order to protect the intellectual property rights of the website and effectively manage the website, it is necessary to introduce a licensing protection mechanism for the website. At the same time, the license should be safe, effective and easy to use. Specifically, it needs to meet the following requirements:

[0053] 1) The license generation and verification algorithm is difficult to crack;

[0054] 3) Ensure that the website can only be used normally within the restrictions;

[0055] 3) The license can be verified regardless of whether the website is in a LAN environment or an Internet environment.

[0056] S300, generating and verifying a server-side license based on the first key pair, and generating and verifying a web-side license based on the second key pair.

[0057] This application adopts a registration code mechanism to encrypt the server-side information and the web-side information respectively, obtain the server-side permission and the web-side permission, and issue the license.

[0058] In this embodiment, the machine code, the license code, the server-side license, and the web-side license are in JSON format and expressed in the form of a string.

[0059] S400: Determine that both the server-side license and the web-side license are successfully verified, and the website is permitted to be used within the limited scope of use.

[0060] Afterwards, the two issued licenses are used to verify the license used by the website, thereby using the registration code mechanism to manage the website's license.

[0061] The website licensing method of the present invention addresses the security issue of website licensing by utilizing a generated first key pair and a second key pair to encrypt and verify the hardware information of the server and the usage restrictions of the website, respectively. Different from the traditional website licensing method, the licensing verification on the web page is added. Therefore, the present invention uses dual licensing verification in collaboration between the website server and the web page, so that the website can be used within the licensed scope, thereby improving the security of the website and thereby achieving stricter protection and declaration of the website's intellectual property rights.

[0062] Combine the following Figure 2 The website permission method of the present invention is described, and step S200 specifically includes the following steps:

[0063] S210: Determine the hardware information of the website server, and generate a machine code on the server based on the determined hardware information.

[0064] S220: Determine the usage restrictions of the website, and generate a license code on the website web page based on the determined usage restrictions and the machine code generated by the website server.

[0065] The machine code and the license code are used to generate a server-side license and a web-side license, respectively, and constitute the registration code used in this application. After the website obtains the registration code entered by the user, the first key pair and the second key pair are used to decrypt the content of the registration code, verify the server-side information (i.e., the machine code) and the web-side information (i.e., the website's usage restrictions), thereby achieving effective control over the use of the website.

[0066] Combine the following Figure 3 The website permission method of the present invention is described, and step S300 specifically includes the following steps:

[0067] S310, encrypting the machine code based on the server private key in the first key pair, and obtaining the server permission.

[0068] S320: Decrypt and verify the server license based on the server public key in the first key pair.

[0069] S330: Encrypt the license code based on the web page private key in the second key pair to obtain the web page license.

[0070] S340: Decrypt and verify the server license based on the server public key in the second key pair.

[0071] In this application, the website license issuing end uses an asymmetric encryption algorithm such as the RSA algorithm to generate two sets of key pairs, and uses the server-side private key to encrypt the hardware information of the website server to generate a server-side license, and combines the website's usage restrictions (such as the number of registered users on the website, etc.), and then uses the web-side private key to encrypt the machine code and the website's usage restrictions to generate a web-side license. In this application, since the web-side license code contains the server-side machine code information, when the website obtains the user-entered registration code consisting of the server-side license and the web-side license, the server-side license and the web-side license are decrypted using the server-side public key and the web-side public key respectively, and the decrypted server information (i.e., the machine code) and web-side information (i.e., the website's usage restrictions) are verified to match the current website, thereby achieving effective control over the use of the website.

[0072] Combine the following Figure 4 The website permission method of the present invention is described, and step S400 specifically includes the following steps:

[0073] S410: When the server information obtained after decryption of the server license, that is, the hardware information when the server license is generated, matches the hardware information of the current website, it is determined that the server license is successfully verified.

[0074] S420: When the web page information obtained after decryption of the web page license, that is, the usage limit when generating the web page license, is within the usage limit of the current website, it is determined that the web page license is successfully verified.

[0075] S430: When both the server-side license and the web-page-side license are successfully verified, the website is permitted to be used within the limited scope of use. Through the double verification of the website server and the web-page, the website is protected from being used within the permitted scope.

[0076] Combine the following Figure 5 Describing the website permission method of the present invention, it can be understood that the method also includes the following steps:

[0077] S500: When the server-side permission and / or the web-side permission are not successfully verified, the website is not allowed to be used.

[0078] The website permission device provided by the present invention is described below. The website permission device described below and the website permission method described above can be referenced to each other.

[0079] Combine the following Figure 6 The device for website authorization of the present invention is described, and the device comprises:

[0080] The first generating module 100 is used to generate a first key pair and a second key pair for asymmetric encryption. In the present application, the first key pair is applied to the server, and the second key pair is applied to the web page.

[0081] It is understandable that the server in the present application refers to the website server, and the web page refers to the website web page. In some possible embodiments, the website license issuing end uses the RSA algorithm to generate two sets of key pairs, namely, the first key pair and the second key pair of asymmetric encryption, wherein the first key pair is used for encryption, decryption and verification of server information, and the first key pair specifically includes the server public key and the server private key, and the second key pair is used for encryption, decryption and verification of web page information, and the second key pair specifically includes the web page public key and the web page private key.

[0082] The second generation module 200 is used to generate a machine code for representing the hardware information of the server and a license code for representing the usage limitation of the website. In this application, the license code includes the information of the machine code.

[0083] In this embodiment, the hardware information of the server includes information such as CPU and operating system information, wherein the operating system information only includes hardware-related information, such as Linux version 3.10.0-1160.31.1.el7.x86_64; the usage restriction includes information on relevant restriction conditions for website use, such as website usage time, usage scope, number of registered users of the website, etc., and the restriction conditions for website use are also the permitted scope of website use.

[0084] The dual verification module 300 is used to generate and verify a server-side license based on a first key pair, and to generate and verify a web-side license based on a second key pair.

[0085] This application adopts a registration code mechanism to encrypt the server-side information and the web-side information respectively, obtain the server-side permission and the web-side permission, and issue the license.

[0086] In this embodiment, the machine code, the license code, the server-side license, and the web-side license are in JSON format and expressed in the form of a string.

[0087] The first licensing module 400 is used to determine that both the server-side license and the web-side license are successfully verified, and the website is permitted to be used within the limited scope of use.

[0088] Afterwards, the two issued licenses are used to verify the license used by the website, thereby using the registration code mechanism to manage the website's license.

[0089] The website licensing device of the present invention addresses the security issues of website licensing by utilizing the generated first key pair and second key pair to encrypt and verify the server hardware information and the website usage restrictions, respectively. Different from the traditional website licensing method, the web page licensing verification is added. Therefore, the present invention uses dual licensing verification in collaboration between the website server and the web page, allowing the website to be used within the licensed scope, thereby improving the security of the website and thereby achieving stricter protection and declaration of the website's intellectual property rights.

[0090] Combine the following Figure 7 The device for website permission of the present invention is described, and the second generation module 200 specifically includes:

[0091] The first generating unit 210 is used to determine the hardware information of the website server and generate a machine code on the server based on the determined hardware information.

[0092] The second generating unit 220 is used to determine the usage restriction of the website, and generate a permission code on the website web page based on the determined usage restriction and the machine code generated by the website server.

[0093] The machine code and the license code are used to generate a server-side license and a web-side license, respectively, and constitute the registration code used in this application. After the website obtains the registration code entered by the user, the first key pair and the second key pair are used to decrypt the content of the registration code, verify the server-side information (i.e., the machine code) and the web-side information (i.e., the website's usage restrictions), thereby achieving effective control over the use of the website.

[0094] Combine the following Figure 8 The website authorization device of the present invention is described, and the double verification module 300 specifically includes:

[0095] The first verification unit 310 is used to encrypt the machine code based on the server private key in the first key pair to obtain the server permission.

[0096] The second verification unit 320 is configured to decrypt and verify the server permission based on the server public key in the first key pair.

[0097] The third verification unit 330 is used to encrypt the license code based on the web page private key in the second key pair to obtain the web page license.

[0098] The fourth verification unit 340 is configured to decrypt and verify the server license based on the server public key in the second key pair.

[0099] In this application, the website license issuing end uses an asymmetric encryption algorithm such as the RSA algorithm to generate two sets of key pairs, and uses the server-side private key to encrypt the hardware information of the website server to generate a server-side license, and combines the website's usage restrictions (such as the number of registered users on the website, etc.), and then uses the web-side private key to encrypt the machine code and the website's usage restrictions to generate a web-side license. In this application, since the web-side license code contains the server-side machine code information, when the website obtains the user-entered registration code consisting of the server-side license and the web-side license, the server-side license and the web-side license are decrypted using the server-side public key and the web-side public key respectively, and the decrypted server information (i.e., the machine code) and web-side information (i.e., the website's usage restrictions) are verified to match the current website, thereby achieving effective control over the use of the website.

[0100] Combine the following Fig. 9 The website permission device of the present invention is described, and the first permission module 400 specifically includes:

[0101] The first licensing unit 410 is configured to determine that the server license is successfully verified when the server information obtained after decryption of the server license, ie, the hardware information when the server license is generated, matches the hardware information of the current website.

[0102] The second licensing unit 420 is configured to determine that the web page license is successfully verified when the web page information obtained after decryption of the web page license, that is, the usage limit when generating the web page license, is within the usage limit of the current website.

[0103] The third permission unit 430 is used to allow the website to be used within the limited scope when both the server-side permission and the web-page-side permission are successfully verified. Through the double verification of the website server and the web-page, the website is protected from being used within the permitted scope.

[0104] Combine the following Fig.10 The device for website permission of the present invention is described. It can be understood that the device also includes:

[0105] The second permission module 500 is used to disallow the website to be used when the server-side permission and / or the webpage-side permission are not successfully verified.

[0106] Fig.11 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.11As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the website permission method, which includes the following steps:

[0107] S100, generating a first key pair and a second key pair for asymmetric encryption; wherein the first key pair is applied to the server, and the second key pair is applied to the web page;

[0108] S200, generating a machine code for representing the hardware information of the server and a permission code for representing the usage restriction of the website; wherein the permission code includes information of the machine code;

[0109] S300, generating and verifying a server-side license based on the first key pair, and generating and verifying a web-side license based on the second key pair;

[0110] S400: Determine that both the server-side license and the web-side license are successfully verified, and the website is permitted to be used within the limited scope of use.

[0111] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0112] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the website permission method provided by the above methods, the method includes the following steps:

[0113] S100, generating a first key pair and a second key pair for asymmetric encryption; wherein the first key pair is applied to the server, and the second key pair is applied to the web page;

[0114] S200, generating a machine code for representing the hardware information of the server and a permission code for representing the usage restriction of the website; wherein the permission code includes information of the machine code;

[0115] S300, generating and verifying a server-side license based on the first key pair, and generating and verifying a web-side license based on the second key pair;

[0116] S400: Determine that both the server-side license and the web-side license are successfully verified, and the website is permitted to be used within the limited scope of use.

[0117] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for executing the website permission provided by the above methods is implemented, and the method comprises the following steps:

[0118] S100, generating a first key pair and a second key pair for asymmetric encryption; wherein the first key pair is applied to the server, and the second key pair is applied to the web page;

[0119] S200, generating a machine code for representing the hardware information of the server and a permission code for representing the usage restriction of the website; wherein the permission code includes information of the machine code;

[0120] S300, generating and verifying a server-side license based on the first key pair, and generating and verifying a web-side license based on the second key pair;

[0121] S400: Determine that both the server-side license and the web-side license are successfully verified, and the website is permitted to be used within the limited scope of use.

[0122] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for website licensing, characterized in that: The following steps are involved: Generate a first key pair and a second key pair for asymmetric encryption; wherein the first key pair is applied to the server side, and the second key pair is applied to the web page side; Generate a machine code for representing the hardware information of the server and a license code for representing the usage restrictions of the website; wherein the license code includes information of the machine code; Generate and verify a server-side license based on the first key pair, and generate and verify a web-side license based on the second key pair; It is determined that both the server-side license and the web-side license are successfully verified, and the website is permitted to be used within the scope of the usage restrictions.

2. The website permission method according to claim 1, characterized in that: The generating of the machine code for representing the hardware information of the server and the license code for representing the usage limitation of the website specifically includes the following steps: Determining the hardware information, and generating the machine code on the server based on the hardware information; The usage restriction is determined, and based on the usage restriction and the machine code, the permission code is generated on the web page.

3. The website permission method according to claim 1, characterized in that: The generating and verifying the server-side license based on the first key pair, and the generating and verifying the web-side license based on the second key pair specifically include the following steps: Encrypting the machine code based on the server private key in the first key pair to obtain permission from the server; decrypting and verifying the server license based on the server public key in the first key pair; Encrypting the license code based on the webpage private key in the second key pair to obtain the webpage license; The server license is decrypted and verified based on the server public key in the second key pair.

4. The website permission method according to claim 1, characterized in that: The step of determining that both the server-side license and the web-side license are successfully verified and the website is permitted to be used within the limited scope of use specifically includes the following steps: When the server information obtained after decryption of the server license matches the hardware information, determining that the server license is successfully verified; When the web page information obtained after decryption of the web page license is within the usage limit, determining that the web page license is successfully verified; When both the server-side license and the web-side license are successfully verified, the website is permitted to be used within the scope of the usage restrictions.

5. The website permission method according to claim 1, characterized in that: The method further comprises the following steps: When the server-side license and / or the web-side license are not successfully verified, the website is not allowed to be used.

6. The website permission method according to claim 1, characterized in that: The machine code, the license code, the server-side license and the web-side license are in JSON format and are represented in the form of strings.

7. A website permission device, characterized in that: include: A first generating module, used to generate a first key pair and a second key pair for asymmetric encryption; wherein the first key pair is applied to the server, and the second key pair is applied to the web page; A second generating module is used to generate a machine code for representing the hardware information of the server and a license code for representing the usage limitation of the website; wherein the license code includes the information of the machine code; A dual verification module, configured to generate and verify a server-side license based on the first key pair, and to generate and verify a web-side license based on the second key pair; The first licensing module is used to determine that both the server-side license and the web-side license are successfully verified, and the website is permitted to be used within the limited scope of use.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the website permission method according to any one of claims 1 to 6 are implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the website licensing method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the website licensing method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Web authentication using client platform root of trust

    CN104025503A

  • Method for verifying restriction identity of content accessing and device thereof

    CN105915495A

  • Granting permission in association with an application

    CN106104552A

  • Method and device for providing authentication information of website

    KR100644411B1