Virtualization equipment license generation method

Through the virtualization device license generation method and the use of key pairs and encryption technology, the problems of software piracy and unauthorized use are solved, the permission control and copyright protection of software users are realized, and the legal use and security of the software are ensured. .

CN118734266AActive Publication Date: 2024-10-01SICHUAN ZHONGTIAN YINGYAN INFORMATION TECH CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively protect software intellectual property and prevent software piracy and unauthorized use, leading to security risks and unhealthy software ecology.

Method used

The virtualization device license generation method is used to generate a key pair of public key and private key, use asymmetric encryption conversion to sign the private key, combine the license data for hash processing and symmetric encryption, and generate a BASE64 encoded license. Authorization file to ensure data integrity and legal use.

Benefits of technology

It realizes the permission control of software users, declares the copyright of the software owner, stipulates the scope of application of the software, and flexibly adjusts the scope, conditions and validity period of the license, ensuring the legal use and safety of the software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734266A_ABST
    Figure CN118734266A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual device license generation method, which belongs to the field of encryption algorithms, and comprises the following steps: firstly, generating a key pair comprising a public key and a private key, and transmitting the public key to a license user; converting the private key by using asymmetric encryption conversion, and signing the authorization permission data by using the converted private key; combining and splicing the license data into combined license data, and performing hash processing on the obtained combined license data; symmetrically encrypting the combined license data after Hash processing, and encoding the encrypted combined license data to form a license authorization file; and the receiver decodes the permission authorization file, decrypts the combined data, verifies the signature data, verifies the correctness of the data and confirms the authorization range in sequence. According to the method, the copyright of a software owner can be stated, the application range of the software is stipulated, the use permission is accurately defined and controlled, and the permission range, condition and effective time are flexibly adjusted.
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 In view of the above-mentioned deficiencies in the prior art, the present invention provides a method for generating a virtualized device license.

[0004] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is: A method for generating a virtualized device license comprises the following steps: S1. Generate a key pair including a public key and a private key, and transmit the public key to the licensee; S2. Convert the private key using asymmetric encryption conversion, and use the converted private key to sign the authorization data; 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.

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

[0006] 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.

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

[0008] 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.

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

[0010] 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.

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

[0012] 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.

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

[0014] 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.

[0015] The present invention has the following beneficial effects: 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

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

[0017] 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.

[0018] A method for generating a virtualized device license, such as Figure 1 As shown, the following steps are included: S1. Generate a key pair including a public key and a private key, and transmit the public key to the licensee; 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. S2. Convert the private key using asymmetric encryption conversion, and use the converted private key to sign the authorization data; The issuer uses asymmetric encryption conversion to process the private key. The converted private key (TSK) uses the following private key conversion algorithm:

[0019] 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.

[0020] 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:

[0021] 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.

[0022] S3, combining and splicing the license data into combined license data, and performing hash processing on the obtained combined license data; 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:

[0023] 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.

[0024] 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:

[0025] 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.

[0026] S4, symmetrically encrypting the hashed combined license data, and performing BASE64 encoding on the encrypted combined license data to obtain a license authorization file; The issuer encrypts the combined data using symmetric encryption.

[0027] 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.

[0028] 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.

[0029] 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.

[0030] 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: 1. The user has deployed and is ready to start using the software service that requires license protection.

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

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

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

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

[0035] 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.

[0036] 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; 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; 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.

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

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

[0039] 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.

[0040] 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 1A device that provides the functions specified in a block or multiple blocks.

[0041] 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 comprising 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.

[0042] 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.

[0043] 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.

[0044] 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, 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. Convert the private key using asymmetric encryption conversion, and use the converted private key to sign the authorization data; 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, characterized in that: The specific method of converting the private key using asymmetric encryption conversion in S2 is: 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.

3. A method for generating a virtualized device license according to claim 1, characterized in that: The specific method of using the converted private key in S2 to sign the authorization data is: 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.

4. A method for generating a virtualized device license according to claim 1, 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.

5. A method for generating a virtualized device license according to claim 1, 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.

6. A method for generating a virtualized device license according to claim 1, 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.

Citation Information

Patent Citations

  • Safety product license management method based on XML encryption and digital certificate

    CN101694685A

  • Software use permission acquisition method and device

    CN114880630A

  • License generation method and system

    CN116881865A

  • Method and system for delivery of secure software license information

    US20030149670A1

  • Method and system for chaotic digital signature, encryption, and authentication

    US20050271207A1