A method for generating a virtualized device license

Through the virtualized device license generation method, key pairs and encryption technology are used to solve the problems of software piracy and unauthorized use, and the permission control and copyright protection of software users are realized, ensuring the legality and security of the software sex.

CN118734266BActive Publication Date: 2024-11-19SICHUAN ZHONGTIAN YINGYAN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411233161.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-11-19
Estimated Expiration
2044-09-04

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively protect the intellectual property rights of software and prevent software piracy and unauthorized use, resulting in security risks and an unhealthy software ecosystem.

Method used

By using the virtualized device license generation method, the private key pairs are generated by generating public and private keys, asymmetric encryption conversion is used to sign the private key, and the license data is combined for hashing and symmetric encryption, and a BASE64-encoded license is generated. Authorize documents to ensure the integrity and legality of the data.

Benefits of technology

It realizes permission control over software users, protects the copyright of software owners, flexibly adjusts the scope, conditions and validity time of licenses, and ensures the legal use and security of the software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734266B_ABST
    Figure CN118734266B_ABST
Patent Text Reader

Abstract

The invention discloses a virtualized device license generation method, which belongs to the field of encryption algorithms. The invention first generates a key pair including a public key and a private key, and transmits the public key to the license user; converts the private key by asymmetric encryption conversion, and uses the converted private key to sign the authorization license data; combines and splices the license data into combined license data, and performs hash processing on the obtained combined license data; symmetrically encrypts the hashed combined license data, and encodes the encrypted combined license data to form a license authorization file; the receiver decodes the license authorization file in sequence, decrypts the combined data, verifies the signature data, and verifies the correctness of the data to confirm the authorization scope. The invention can declare the copyright of the software owner, stipulate the applicable scope of the software, accurately define and control the use authority, and flexibly adjust the scope, conditions and validity period of the license.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of encryption algorithms, and in particular to a method for generating a virtualized device license. Background Art

[0002] In today's digital and information age, software has become an indispensable and important tool for all walks of life. However, with the widespread use of software, software piracy and unauthorized use are becoming increasingly serious. Not only does it damage the interests of developers and companies, it may also bring security risks. In order to protect software intellectual property rights, ensure legal use, and maintain the healthy development of the software ecosystem, the licensing mechanism can effectively protect the interests of developers, prevent software from being illegally copied, distributed, and used, and may also cause software to be abused, resulting in various security issues. The licensing mechanism can ensure that only legally authorized users can use the software through encryption and verification, thereby preventing unauthorized use. It is particularly important to develop and implement a licensing mechanism.

[0003] In the above situation, through the license mechanism, developers and companies can protect their rights and interests, users can also get a better user experience, and can develop more healthily and sustainably. Therefore, the licensing mechanism is an inevitable choice for the development of the current software industry and an important means to protect the interests of all parties. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method for generating a virtualized device license.

[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0006] A method for generating a virtualized device license comprises the following steps:

[0007] S1. Generate a key pair including a public key and a private key, and transmit the public key to the licensee;

[0008] S2. Convert the private key using asymmetric encryption conversion, and use the converted private key to sign the authorization data;

[0009] S3, combining and splicing the license data into combined license data, and performing hash processing on the obtained combined license data;

[0010] S4, symmetrically encrypting the hashed combined license data, and performing BASE64 encoding on the encrypted combined license data to obtain a license authorization file;

[0011] S5. The recipient sequentially performs BASE64 decoding on the license authorization file, decrypts the combined data, verifies the signature data, and verifies the correctness of the data to confirm the authorization scope.

[0012] Furthermore, the specific method of converting the private key using asymmetric encryption conversion in S2 is:

[0013]

[0014] In the formula, is the converted private key, is the private key, A is the coefficient of the quintic term of the polynomial; B is the coefficient of the exponential term; C is the coefficient of the base of the exponential term; D is the coefficient of the logarithmic term; E is the coefficient of the cubic term of the polynomial; G is the constant term; H is the coefficient of the sine function term in the denominator; K is the frequency coefficient of the sine function; L is the coefficient of the cosine function term in the denominator; M is the frequency coefficient of the cosine function; N is the constant term in the denominator; P is a prime number, Calculate the remainder.

[0015] Furthermore, the specific method of using the converted private key to sign the authorization data in S2 is:

[0016]

[0017] In the formula, For signature, is the converted private key, is the XOR operation, is the hashed value of the authorization data. For authorization data, is a prime number, Calculate the remainder.

[0018] Furthermore, the combined license data in S3 is represented as:

[0019] In the formula, For combined data, is the version number, is the timestamp of the current generation, is the signature length, For signature, is the length of the authorization data, For authorization data, is the length of the authorization code, A unique authorization code.

[0020] Furthermore, the specific method of performing hash processing on the obtained combined license data in S3 is:

[0021]

[0022] In the formula, To hash the combined license data, To combine license data, is the coefficient of the i-th item in the combined license data, is a prime number, Remainder calculation.

[0023] Furthermore, the specific method of symmetric encryption in S4 is:

[0024]

[0025] In the formula, For the encrypted data, is a symmetric encryption function, To combine the license data with its hash value, is the encryption key, The initialization vector for symmetric encryption.

[0026] The present invention has the following beneficial effects:

[0027] The present invention can control the usage rights of software users, declare the copyright of software owners, and at the same time stipulate the applicable scope of the software, formulate rules according to product requirements and specific applications, accurately define and control usage rights, and flexibly adjust the scope, conditions and validity period of the license. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 The figure is a flow chart of the method for generating a virtualized device license according to the present invention. DETAILED DESCRIPTION

[0029] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0030] A method for generating a virtualized device license, such as Figure 1 As shown, the following steps are included:

[0031] S1. Generate a key pair including a public key and a private key, and transmit the public key to the licensee;

[0032] The party issuing the license generates a pair of keys including a public key and a private key. The public key (PK) is a public encryption key, and the private key (SK) is a private decryption and signing key. After the key is successfully generated, the public key will be passed to the license user in a secure manner for subsequent signature verification.

[0033] S2. Convert the private key using asymmetric encryption conversion, and use the converted private key to sign the authorization data;

[0034] The issuer uses asymmetric encryption conversion to process the private key. The converted private key (TSK) uses the following private key conversion algorithm:

[0035] In the formula, is the converted private key, is the private key, A is the coefficient of the quintic term of the polynomial; B is the coefficient of the exponential term; C is the coefficient of the base of the exponential term; D is the coefficient of the logarithmic term; E is the coefficient of the cubic term of the polynomial; G is the constant term; H is the coefficient of the sine function term in the denominator; K is the frequency coefficient of the sine function; L is the coefficient of the cosine function term in the denominator; M is the frequency coefficient of the cosine function; N is the constant term in the denominator; P is a prime number, Calculate the remainder.

[0036] The issuer signs the authorization data. The purpose of the signature is to ensure that the license is issued by the correct issuer and that the data has not been tampered with during transmission or storage. If the data is modified, the signature will no longer be valid. Authorization data (AD) is the authorization information that needs to be signed. The signature uses the converted private key to sign the authorization license data. The signature (SIG) is the result of signing the authorization data using the converted private key. The signature algorithm is:

[0037]

[0038] In the formula, For signature, is the converted private key, is the XOR operation, is the hashed value of the authorization data. For authorization data, is a prime number, Calculate the remainder.

[0039] S3, combining and splicing the license data into combined license data, and performing hash processing on the obtained combined license data;

[0040] The issuer combines all the license-related data together, including version, time, signature length, signature, data length, authorization data, authorization code length, and authorization code into a string to prepare for subsequent data hashing. The combined license data is represented as:

[0041] In the formula, For combined data, is the version number, is the timestamp of the current generation, is the signature length, For signature, is the length of the authorization data, For authorization data, is the length of the authorization code, A unique authorization code.

[0042] The issuer performs hash processing on the combined data. Data hashing ensures that the data has not been tampered with during transmission or storage. The integrity of the data is determined by comparing whether the hash value has changed. (HCD) is the value after data hashing. The algorithm for processing data is:

[0043]

[0044] In the formula, To hash the combined license data, To combine license data, is the coefficient of the i-th item in the combined license data, is a prime number, Remainder calculation.

[0045] S4, symmetrically encrypting the hashed combined license data, and performing BASE64 encoding on the encrypted combined license data to obtain a license authorization file;

[0046] The issuer encrypts the combined data using symmetric encryption.

[0047] In the formula, For the encrypted data, is a symmetric encryption function, To combine the license data with its hash value, is the encryption key, The initialization vector for symmetric encryption.

[0048] S5. The recipient sequentially performs BASE64 decoding on the license authorization file, decrypts the combined data, verifies the signature data, and verifies the correctness of the data to confirm the authorization scope.

[0049] The issuer outputs the encoded data to a file to form a license authorization file. When activating a license, the user needs to perform BASE64 decoding on the license authorization file in order, decrypt the combined data, verify the signature data, and then verify the correctness of the data (authorization time, unique authorization code, etc.). Finally, the authorization data is parsed to confirm the authorization scope and control the activity scope of related specific resources.

[0050] In this embodiment, the license issuance technical solution process is encoded into a complete license issuance procedure, and the license issuance can be implemented by performing the following steps:

[0051] 1. The user has deployed and is ready to start using the software service that requires license protection.

[0052] 2. The user logs in to the system, enters the Licence authorization interface, and obtains a unique authorization code.

[0053] 3. The user sends the unique authorization code to the issuer through a secure channel.

[0054] 4. The issuer generates the keys in advance, and the keys are all a set of keys used.

[0055] 5. The issuer logs in to the internal license issuance system and enters the license issuance interface.

[0056] 6. The issuer uploads the unique authorization code sent by the user and sets the target software’s usage permission boundaries, validity period, product, authorized users and other information.

[0057] 7. After the issuer completes the information for generating the License, click Generate License. At the moment of clicking Generate, the License issuance system will convert the private key;

[0058] Use the converted private key to sign the authorization data; after the signature is successful, all related data are combined together, including version, time, signature length, signature, data length, authorization data, authorization code length, and authorization code into a string, and the spliced ​​data is hashed. Data hashing ensures that the data has not been tampered with during transmission or storage;

[0059] After the data hash is successful, the combined data is encrypted using symmetric encryption, and finally the encrypted data generated is encoded using BASE64, and a license file is generated at the same time.

[0060] 8. After the license file is generated successfully, the issuer downloads the authorization file to the local computer.

[0061] 9. The issuer sends the license file to the user through a secure channel.

[0062] 10. The user uploads the license file through the license authorization interface and confirms the activation. If the activation is successful, the user can use the permitted functions within the scope of the license.

[0063] The present invention is described with reference to flowcharts and / or block diagrams of methods, device systems, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0064] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0065] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0066] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0067] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A method for generating a virtualized device license, It is characterized in that The steps include: S1. Generate a key pair including a public key and a private key, and transmit the public key to the licensee; S2. Use asymmetric encryption to convert the private key. The specific method is as follows: In the formula, is the converted private key, is the private key, A is the coefficient of the quintic term of the polynomial; B is the coefficient of the exponential term; C is the coefficient of the base of the exponential term; D is the coefficient of the logarithmic term; E is the coefficient of the cubic term of the polynomial; G is the constant term; H is the coefficient of the sine function term in the denominator; K is the frequency coefficient of the sine function; L is the coefficient of the cosine function term in the denominator; M is the frequency coefficient of the cosine function; N is the constant term in the denominator; P is a prime number, To calculate the remainder; The converted private key is used to sign the authorization license data. The specific method of using the converted private key to sign the authorization license data is as follows: In the formula, For signature, is the converted private key, is the XOR operation, is the hashed value of the authorization data. For authorization data, is a prime number, To calculate the remainder; S3, combining and splicing the license data into combined license data, and performing hash processing on the obtained combined license data; S4, symmetrically encrypting the hashed combined license data, and performing BASE64 encoding on the encrypted combined license data to obtain a license authorization file; S5. The recipient sequentially performs BASE64 decoding on the license authorization file, decrypts the combined data, verifies the signature data, and verifies the correctness of the data to confirm the authorization scope.

2. A method for generating a virtualized device license according to claim 1, It is characterized in that The combined license data in S3 is represented as: In the formula, For combined data, is the version number, is the timestamp of the current generation, is the signature length, For signature, is the length of the authorization data, For authorization data, is the length of the authorization code, A unique authorization code.

3. A method for generating a virtualized device license according to claim 1, It is characterized in that The specific method of performing hash processing on the obtained combined license data in S3 is: In the formula, To hash the combined license data, To combine license data, is the coefficient of the i-th item in the combined license data, is a prime number, Remainder calculation.

4. A method for generating a virtualized device license according to claim 1, It is characterized in that The specific method of symmetric encryption in S4 is: In the formula, For the encrypted data, is a symmetric encryption function, To combine the license data with its hash value, is the encryption key, The initialization vector for symmetric encryption.