A license authorization method and system suitable for multiple scenarios, a terminal and a medium

By reading the customer's license information from the host computer and writing it into an encrypted carrier, device license information is generated and saved to the local storage area when the network is abnormal. Combined with the device fingerprint information for verification, the problem of license verification accuracy under unstable network or offline conditions is solved, and stable authorization and verification are achieved in multiple scenarios.

CN120979723BActive Publication Date: 2026-04-21深圳开鸿数字产业发展有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
深圳开鸿数字产业发展有限公司
Filing Date
2025-08-14
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

Existing license authorization methods cannot guarantee the accuracy of verification in situations with unstable networks or offline conditions, and lack applicability to multiple scenarios.

Method used

The system generates device license information by reading the customer's license information from the host computer and writing it into an encrypted carrier. When the network is abnormal, the information is saved to the local storage area and submitted to the cloud server for recording after the network is restored. The system is then verified by combining the device fingerprint information, supporting license authorization in both offline and online scenarios.

Benefits of technology

It achieves stability in license authorization and verification under various environments, supports license activation and verification in both offline and online scenarios, and is suitable for a variety of scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120979723B_ABST
    Figure CN120979723B_ABST
Patent Text Reader

Abstract

This invention discloses a license authorization method, system, terminal, and medium applicable to multiple scenarios. The method includes: a host computer reading customer license information and writing the customer license information into an encrypted carrier; the host computer sending a license activation command to a device, generating device license information based on device fingerprint information, and feeding back the device license information to the device; the host computer acquiring the network communication status with a cloud server, and if the network communication status is abnormal, saving the device license information to a local storage area, and submitting the device license information in the local storage area to the cloud server after the network communication status returns to normal, so that the cloud server records the device license information as activated. This invention supports license authorization in both online and wireless scenarios, supports dynamic detection of license information, and can ensure the stability of license authorization and verification in various environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet technology, and in particular to a license authorization method, system, terminal, and medium applicable to multiple scenarios. Background Technology

[0002] A license is an authorization document for the scope of use and functions of a product. Incorporating a license into the design of embedded devices can prevent software decompilation and manage and control the permissions and validity periods of various functions. The license authorization process requires the use of multiple encryption methods for the key, and the transmission of the encrypted and decrypted key relies on the network. Therefore, when the host computer software and the cloud network are unreachable or the network connection is unstable, the accuracy of license verification cannot be guaranteed.

[0003] Therefore, existing technologies still need to be improved and enhanced. Summary of the Invention

[0004] The technical problem to be solved by this invention is to provide a license authorization method, system, terminal, and medium applicable to multiple scenarios, addressing the aforementioned deficiencies of the prior art. The technical solution adopted by this invention is as follows:

[0005] In a first aspect, the present invention provides a license authorization method applicable to multiple scenarios, wherein the method is applied to a license authorization system composed of a cloud server, a host computer, and a device, and the method includes:

[0006] The host computer reads the customer's license information and writes the customer's license information into an encrypted carrier;

[0007] The host computer sends a license activation command to the device, generates device license information based on the device fingerprint information, and feeds back the device license information to the device.

[0008] The host computer obtains the network communication status with the cloud server. If the network communication status is abnormal, the device license information is saved to the local storage area. After the network communication status returns to normal, the device license information in the local storage area is submitted to the cloud server so that the cloud server records the device license information as activated.

[0009] In one implementation, the method further includes:

[0010] Enter user identity information in the cloud and encrypt the user identity information using a private key to generate customer license information. The customer license information includes user identity information, number of licenses, number of licenses used, and valid usage time.

[0011] The cloud downloads the customer's license information to the host computer.

[0012] In one implementation, after writing the customer license information into the encrypted carrier, the method further includes:

[0013] The host computer obtains the number of times the encrypted carrier has been used as recorded.

[0014] If the number of uses has reached the permitted number of uses for the customer's license information, a prompt message will be displayed indicating that the customer's license information needs to be reapplied for.

[0015] In one implementation, after the host computer sends the license activation command to the device, it includes:

[0016] The device obtains the device's fingerprint information;

[0017] The device reads the authorized fingerprint information corresponding to the customer's license information, and verifies the device fingerprint information based on the device fingerprint information and the authorized fingerprint information to determine the validity of the device fingerprint information;

[0018] The device sends the validity information of the device fingerprint information and the device fingerprint information back to the host computer.

[0019] In one implementation, the device fingerprint information is verified based on the device fingerprint information and the authorized fingerprint information to determine the validity of the device fingerprint information, including:

[0020] The device compares the device fingerprint information with the authorized fingerprint information;

[0021] If the device fingerprint information is inconsistent with the authorized fingerprint information, then the validity information of the device fingerprint information is determined to be invalid.

[0022] If the device fingerprint information matches the authorized fingerprint information, then the validity information of the device fingerprint information is determined to be valid.

[0023] In one implementation, generating device license information based on device fingerprint information and feeding the device license information back to the device includes:

[0024] The host computer generates device license information based on the device fingerprint information and customer license information, and encrypts the device license information using a private key;

[0025] The host computer sends the encrypted device license information to the device via the license protocol.

[0026] In one implementation, the method further includes:

[0027] After receiving the device license information, the device verifies the device license information to confirm its validity.

[0028] In one implementation, the device license information is verified to confirm its validity, including:

[0029] The device uses a public key to decrypt the device license information to obtain internal fingerprint information, and then matches the internal fingerprint information with the device fingerprint information.

[0030] If the internal fingerprint information is inconsistent with the device fingerprint information, the device license information is determined to be invalid, and a license exception flag is output.

[0031] If the internal fingerprint information matches the device fingerprint information, then it is determined whether the authorization time and usage time of the device license information exceed the authorization range;

[0032] If the authorization time and usage time of the device license information exceed the authorization range, the device license information is determined to be invalid, a license exception flag is output, and the device license information is re-verified after a preset time period.

[0033] In one implementation, after feeding back the device license information to the device, the method further includes:

[0034] After the device license information is verified on the device side, the host computer increments the number of uses in the customer's license information by 1 and writes the updated number of uses into the encrypted carrier.

[0035] Secondly, embodiments of the present invention also provide a license authorization system applicable to multiple scenarios, wherein the system is used for the steps of the license authorization method applicable to multiple scenarios described in any of the above solutions, the system includes a cloud server, a host computer, and a device, wherein the host computer includes:

[0036] The customer license information reading module is used to read customer license information and write the customer license information into an encrypted carrier.

[0037] The device license information generation module is used to send a license activation command to the device, generate device license information based on device fingerprint information, and feed the device license information back to the device.

[0038] The device license information transmission module is used to obtain the network communication status with the cloud server. If the network communication status is abnormal, the device license information is saved to the local storage area. After the network communication status returns to normal, the device license information in the local storage area is submitted to the cloud server so that the cloud server records the device license information as activated.

[0039] Thirdly, embodiments of the present invention also provide a terminal, wherein the terminal includes a memory, a processor, and a license authorization program applicable to multiple scenarios stored in the memory and executable on the processor. When the processor executes the license authorization program applicable to multiple scenarios, it implements the steps of the license authorization method applicable to multiple scenarios in any of the above solutions.

[0040] Fourthly, embodiments of the present invention also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a license authorization program applicable to multiple scenarios, and when the license authorization program applicable to multiple scenarios is executed by a processor, it implements the steps of the license authorization method applicable to multiple scenarios as described in any of the above schemes.

[0041] Beneficial Effects: Compared with existing technologies, this invention provides a license authorization method applicable to multiple scenarios. Applied to a license authorization system composed of a cloud server, a host computer, and a device, the host computer first reads the customer's license information and writes it into an encrypted carrier. Next, the host computer sends a license activation command to the device, generates device license information based on the device fingerprint information, and feeds the device license information back to the device. Then, the host computer obtains the network communication status with the cloud server. If the network communication status is abnormal, the device license information is saved to local storage. After the network communication status returns to normal, the device license information in the local storage is submitted to the cloud server so that the cloud server records the device license information as activated. Therefore, this application can support license authorization in scenarios where the network communication status between the host computer and the cloud server is abnormal (i.e., offline) and when the network communication status returns to normal (i.e., online). It supports dynamic detection of license information and can ensure the stability of license authorization and verification in various environments. Attached Figure Description

[0042] Figure 1 This diagram illustrates the application environment of the license authorization method applicable to multiple scenarios provided in this embodiment of the invention.

[0043] Figure 2 The diagram illustrates the logical modules of the cloud server, host computer, and device in the license authorization method applicable to multiple scenarios provided in this embodiment of the invention.

[0044] Figure 3 This is a schematic diagram of the interface of the encryption algorithm library in the license authorization method applicable to multiple scenarios provided in the embodiments of the present invention.

[0045] Figure 4 A flowchart of a preferred embodiment of the license authorization method applicable to multiple scenarios provided by the present invention.

[0046] Figure 5 This is a portion of the user interface of the activation tool in the License authorization method applicable to multiple scenarios provided in this embodiment of the invention.

[0047] Figure 6 This is a flowchart illustrating the verification process of device license information in a license authorization method applicable to multiple scenarios provided in this embodiment of the invention.

[0048] Figure 7This is a schematic diagram of the host computer architecture in a license authorization system applicable to multiple scenarios provided in an embodiment of the present invention.

[0049] Figure 8 A schematic diagram of the terminal provided in an embodiment of the present invention. Detailed Implementation

[0050] To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0051] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content, operations, or steps, nor does it require execution in the described order. For example, some operations or steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.

[0052] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0053] It should be understood that, in order to clearly describe the technical solutions of the embodiments of the present invention, the terms "first" and "second" are used in the embodiments of the present invention to distinguish identical or similar items with essentially the same function and effect. For example, the first control information and the second control information are only used to distinguish different control information and do not limit their order.

[0054] Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or the order of execution, and that the words "first" and "second" do not necessarily imply that they are different.

[0055] It should also be understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0056] Existing license authorization methods typically innovate around the security of the license verification process and the acquisition method, but the following problems still exist: On the one hand, most existing license authorization methods are limited to wired network environments because the transmission process after key encryption and decryption requires the network. A few innovations in license authorization methods have proposed offline authorization methods, but none of these methods are universal and fail to consider the usage and functional requirements of license authorization in various scenarios. For example, online license authorization methods can manage customer license information more efficiently through cloud servers, but there may be risks of network instability between the cloud server and the host computer. In this case, the possibility of offline scenarios must be considered.

[0057] To address the problems of existing technologies, this embodiment provides a license authorization method applicable to multiple scenarios. Based on this embodiment, the method can perform license authorization in both online and wireless scenarios, which helps maintain the stability of license authorization and verification under various environments. Figure 1 As shown in the figure, the license authorization method applicable to multiple scenarios in this embodiment is applied to a license authorization system composed of a cloud server, a host computer, and a device. The cloud server and the host computer are connected to facilitate data interaction, and the host computer and the device are connected to facilitate data interaction. In specific applications, such as... Figure 2 As shown, the cloud server connects to the host computer's cloud communication module via an external portal API interface. The host computer connects to the device via a license authorization protocol and a serial port. The host computer includes: a cloud communication module, a license protocol module, a license authentication module, an encryption algorithm library, and a dongle read / write driver. The dongle read / write driver drives the dongle, which includes an encryption algorithm and an encrypted read / write area. In this embodiment, the dongle is an encryption carrier. The device includes: a license protocol module, a cloud communication module, a license verification module, an encryption algorithm library, and EEPROM (Electrically Erasable Programmable Read-Only Memory) and OTP (One-time Password) read / write drivers. The encryption algorithm library in this embodiment is based on the RSA asymmetric encryption and decryption algorithm. The public and private keys of the encryption and decryption algorithm are pre-compiled into the software code, providing public key encryption / decryption interfaces and private key encryption / decryption interfaces, such as... Figure 3As shown, this enables functions such as decrypting customer license information and encrypting device license information. Throughout the entire license authorization process, regardless of the number of users or devices, only one RSA key pair is required, namely a public key and a private key.

[0058] Furthermore, such as Figure 4 As shown, the method in this embodiment includes the following steps:

[0059] Step S100: The host computer reads the customer's license information and writes the customer's license information into an encrypted carrier.

[0060] In this embodiment, the customer license information is obtained through user application and serves as proof of the user's eligibility. Specific content includes user identity information, the number of licenses, the number of license uses, and the valid usage time. In practical application, the user first enters their identity information on the cloud server. This user identity information may include a user ID, corresponding company information, and contract information. The user identity information is then encrypted using a private key to generate customer license information, which includes the user identity information, the number of licenses, the number of license uses, and the valid usage time. Next, the cloud downloads the customer license information to the host computer so that the host computer can set the storage path for the customer license information. Upon receiving the customer license information, the host computer writes it into an encrypted carrier (such as a dongle).

[0061] Step S200: The host computer sends a License activation command to the device, generates device License information based on the device fingerprint information, and feeds back the device License information to the device.

[0062] When activating a license, the host computer sends a license activation command to the device and launches the license activation tool, selecting the appropriate activation mode. During activation mode selection, the host computer displays an activation mode selection interface, allowing the user to choose between online or offline activation. In this embodiment, the license activation tool can perform functions such as viewing license activation status, activating the license, and querying device information. Figure 5As shown in the diagram. In practical applications, this embodiment first selects the offline activation mode. Then, the host computer obtains the number of times the encryption carrier (i.e., the dongle) has been used. This number of times reflects the number of times the customer's license information has been activated. If the number of times used reaches the permitted number of times the customer's license information can be used, it means that the permitted number of times the customer's license information can be used has been exhausted. At this time, a prompt message to reapply for the customer's license information will be output. The implementation of the offline activation mode in this embodiment is mainly based on dongle technology. A dongle is a software encryption product that combines hardware and software and is plugged into the parallel port of a computer. It has tens or hundreds of bytes of non-volatile storage space available for reading and writing. When there is no network, the offline activation mode is entered. At this time, the usage information of the customer's license information is temporarily written to the encrypted storage space of the dongle. External programs cannot change the value of this area without the correct key. After the network environment is detected again, the temporary content is written to the cloud. In actual use, through the SDK (Software Development Kit) provided by the dongle, the program can directly call the dongle's interface to read and write the encrypted storage area.

[0063] Furthermore, after receiving the license activation command, the device generates device license information based on the device fingerprint information and feeds the device license information back to the device. In this embodiment, the device license information is used to activate the device, and its specific content includes the manufacturer code, device type and model, device fingerprint information (i.e., device fingerprint information), and download time. Among these, the device fingerprint information is the most important component and is crucial for license verification. The device fingerprint information is generated by concatenating the device hardware serial number and MAC address, and then using the SHA256 algorithm to obtain the hash value. The SHA256 (Secure Hash Algorithm 256-bit) algorithm used by the device in generating the device fingerprint information is a hash function, also known as a hash algorithm, which is a method for creating a small digital fingerprint from any kind of data. This hash function scrambles and mixes the data to recreate a fingerprint called a hash value, usually represented by a short string of random letters and numbers. For messages of any length, the SHA256 algorithm will produce a 256-bit hash value, called a message digest. The message digest is unique and can be used to verify whether data has been altered, thereby ensuring the integrity and security of information transmission. Therefore, the device fingerprint information in this embodiment is unique.

[0064] After acquiring the device fingerprint information, the device reads the authorized fingerprint information corresponding to the customer's license information. This authorized fingerprint information is implicitly included in the authorization system of the customer's license information. Next, based on the device fingerprint information and the authorized fingerprint information, the device fingerprint information is verified to determine its validity. In this embodiment, verifying the validity of the device fingerprint information essentially means verifying whether the device fingerprint information conforms to the fingerprint specifications of the authorized devices in the customer's license information. Specifically, the device compares the device fingerprint information with the authorized fingerprint information. If the device fingerprint information and the authorized fingerprint information are inconsistent, the device fingerprint information is determined to be invalid. If the device fingerprint information and the authorized fingerprint information are consistent, the device fingerprint information is determined to be valid. Finally, the device feeds back the validity information and the device fingerprint information to the host computer. If the device fingerprint information is valid, the host computer generates device license information based on the device fingerprint information and the customer's license information, and encrypts the device license information using a private key. The host computer sends the encrypted device license information to the device via the license protocol. At this point, the device license information is bound to the device fingerprint information, so the device license information can be written into the corresponding device and become the authorization carrier.

[0065] In another implementation, after receiving the device license information, the device verifies the validity of the device fingerprint information based on the license verification module when activating the corresponding device. The main function of the license verification module is to compare the internal fingerprint information (internal fingerprint information) in the device license information with the device fingerprint information (i.e., device fingerprint information), and to verify whether the authorization period of the device license information has expired. Verification is real-time, meaning that the device license information is checked every 24 hours after the system starts normally. The specific verification process is as follows: Figure 6After the system starts normally, the license verification module on the device side initiates a real-time license detection process. First, it checks if the device license information exists. If it doesn't exist, a license exception flag is output. If it exists, the public key is used to decrypt the device license information to obtain internal fingerprint information. This internal fingerprint information is then matched with the device fingerprint information to determine if they are consistent. If the internal fingerprint information is inconsistent with the device fingerprint information, the device license information is deemed invalid, and a license exception flag is output. If the internal fingerprint information is consistent with the device fingerprint information, it checks if the authorization time and usage time of the device license information exceed the authorized range. If the authorization time and usage time of the device license information exceed the authorized range, the device license information is deemed invalid, and a license exception flag is output. If the authorization time and usage time of the device license information do not exceed the authorized range, the device license information is verified again after a preset time period (e.g., a 24-hour delay), i.e., the step of checking if the device license information exists is re-executed. This embodiment can record all license anomaly flags, and if the device license information is mismatched or nonexistent, it will shut down once every hour and output a message indicating that the device license information is mismatched or nonexistent via serial port. This dynamic detection ensures the legitimacy of the device license information during use. After the device license information is verified on the device side, it is fed back to the host computer. The host computer increments the number of uses in the customer's license information by 1 and writes the updated number of uses into an encrypted carrier.

[0066] Step S300: The host computer obtains the network communication status with the cloud server. If the network communication status is abnormal, the device license information is saved to the local storage area. After the network communication status returns to normal, the device license information in the local storage area is submitted to the cloud server so that the cloud server records the device license information as activated.

[0067] In this embodiment, when network communication is abnormal (i.e., offline), the device license information is locally saved, and the generation time of the device license information is recorded. Then, when network communication returns to normal (i.e., online), the locally saved device license information and generation time are submitted to the cloud server. Upon receiving the device license information, the cloud server saves it, records the device license as activated, and rewrites the number of used device licenses. The cloud server also decrements the number of customer licenses by 1 to ensure synchronization. Users can log in to the cloud server and enter the license number to view the usage records of the corresponding customer license information. Therefore, this embodiment can perform license activation and authorization simultaneously when the host computer is connected to the cloud server, and also when the host computer has poor network communication. It achieves license activation and authorization in both offline and online scenarios, making it applicable to more scenarios. Furthermore, the hybrid offline and online modes in this application are more suitable for actual user operation scenarios, ensuring the stability of license authorization and verification in various environments.

[0068] Based on the above embodiments, the present invention also provides a license authorization system applicable to multiple scenarios, the system being used to implement the steps in the above method embodiments. This embodiment of the license authorization system applicable to multiple scenarios includes a cloud server, a host computer, and a device. Specifically, as... Figure 7 As shown, the host computer mainly includes: a customer license information reading module, a device license information generation module, and a device license information transmission module. The customer license information reading module is used to read customer license information and write it into an encrypted carrier. The device license information generation module is used to send a license activation command to the device, generate device license information based on device fingerprint information, and feed the device license information back to the device. The device license information transmission module is used to obtain the network communication status with the cloud server. If the network communication status is abnormal, the device license information is saved to the local storage area, and after the network communication status returns to normal, the device license information is submitted to the cloud server so that the cloud server records the device license information as activated.

[0069] The working principle of each module in the license authorization system applicable to multiple scenarios in this embodiment is the same as that of each step in the above method embodiment, and will not be repeated here.

[0070] The modules in the aforementioned license authorization system applicable to multiple scenarios can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the terminal in hardware form or independent of it, or stored in the memory of the terminal in software form, so that the processor can call and execute the operations corresponding to each module.

[0071] In some embodiments, a terminal is provided, the internal structure of which can be as follows: Figure 8 As shown. This terminal can connect to the aforementioned cloud server, host computer, and device, and can invoke these components to control them, thereby realizing the license authorization method applicable to multiple scenarios in this embodiment. Specifically, the terminal includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a license authorization method applicable to multiple scenarios. The display unit of the terminal is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the terminal can be a touch layer covering the display screen, or buttons, a trackball, or a touchpad set on the terminal shell, or an external keyboard, touchpad, or mouse, etc.

[0072] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the terminal to which the present application is applied. A specific terminal may include more or fewer components than those shown in the figure, or may combine certain components, or may have different component arrangements.

[0073] In some embodiments, a terminal is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0074] The host computer is controlled to read the customer's license information and write the customer's license information into an encrypted carrier;

[0075] The host computer sends a license activation command to the device, generates device license information based on the device fingerprint information, and feeds back the device license information to the device.

[0076] The host computer is controlled to obtain the network communication status with the cloud server. If the network communication status is abnormal, the host computer is controlled to save the device license information to the local storage area. After the network communication status returns to normal, the host computer is controlled to submit the device license information to the cloud server so that the cloud server records the device license information as activated.

[0077] It should be noted that the user information (including but not limited to user device function information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with relevant regulations.

[0078] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0079] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0080] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A license authorization method applicable to multiple scenarios, characterized in that, The method is applied to a license authorization system consisting of a cloud server, a host computer, and a device. The method includes: The host computer reads the customer's license information and writes the customer's license information into an encrypted carrier; The host computer sends a license activation command to the device and starts the license activation tool. It selects the corresponding activation mode, which includes online activation mode or offline activation mode. It generates device license information based on device fingerprint information and feeds the device license information back to the device. The host computer obtains the network communication status with the cloud server. If the network communication status is abnormal, the device license information is saved to the local storage area. After the network communication status returns to normal, the device license information in the local storage area is submitted to the cloud server so that the cloud server records the device license information as activated. After the host computer sends the license activation command to the device, it includes: The device acquires device fingerprint information, which is generated by concatenating the device hardware serial number and MAC address and then using the SHA256 algorithm to obtain the hash value. The device reads the authorized fingerprint information corresponding to the customer's license information and compares the device fingerprint information with the authorized fingerprint information. If the device fingerprint information is inconsistent with the authorized fingerprint information, then the validity information of the device fingerprint information is determined to be invalid. If the device fingerprint information matches the authorized fingerprint information, then the validity information of the device fingerprint information is determined to be valid; The device sends the validity information of the device fingerprint information and the device fingerprint information back to the host computer. The method further includes: After receiving the device license information, the device uses a public key to decrypt the device license information to obtain internal fingerprint information, and then matches the internal fingerprint information with the device fingerprint information. If the internal fingerprint information is inconsistent with the device fingerprint information, the device license information is determined to be invalid, and a license exception flag is output. If the internal fingerprint information matches the device fingerprint information, then it is determined whether the authorization time and usage time of the device license information exceed the authorization range; If the authorization time and usage time of the device license information exceed the authorization range, the device license information is determined to be invalid, a license abnormality flag is output, and the device license information is re-verified after a preset time period. After the device license information is verified on the device side, the host computer increments the number of uses in the customer's license information by 1 and writes the updated number of uses into the encrypted carrier.

2. The license authorization method applicable to multiple scenarios according to claim 1, characterized in that, The method further includes: Enter user identity information in the cloud and encrypt the user identity information using a private key to generate customer license information. The customer license information includes user identity information, number of licenses, number of licenses used, and valid usage time. The cloud downloads the customer's license information to the host computer.

3. The license authorization method applicable to multiple scenarios according to claim 2, characterized in that, After writing the customer license information into the encrypted carrier, the process also includes: The host computer obtains the number of times the encrypted carrier has been used as recorded. If the number of uses has reached the permitted number of uses for the customer's license information, a prompt message will be displayed indicating that the customer's license information needs to be reapplied for.

4. The license authorization method applicable to multiple scenarios according to claim 1, characterized in that, Generating device license information based on device fingerprint information and feeding the device license information back to the device includes: The host computer generates device license information based on the device fingerprint information and customer license information, and encrypts the device license information using a private key; The host computer sends the encrypted device license information to the device via the license protocol.

5. A license authorization system applicable to multiple scenarios, characterized in that, The system is used to implement the steps of the license authorization method applicable to multiple scenarios as described in any one of claims 1-4. The system includes a cloud server, a host computer, and a device, wherein the host computer includes: The customer license information reading module is used to read customer license information and write the customer license information into an encrypted carrier. The device license information generation module is used to send a license activation command to the device, generate device license information based on device fingerprint information, and feed the device license information back to the device. The device license information transmission module is used to obtain the network communication status with the cloud server. If the network communication status is abnormal, the device license information is saved to the local storage area. After the network communication status returns to normal, the device license information in the local storage area is submitted to the cloud server so that the cloud server records the device license information as activated.

6. A terminal, characterized in that, The terminal includes a memory, a processor, and a multi-scenario license authorization program stored in the memory and executable on the processor. When the processor executes the multi-scenario license authorization program, it implements the steps of the multi-scenario license authorization method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a license authorization program applicable to multiple scenarios. When the license authorization program applicable to multiple scenarios is executed by a processor, it implements the steps of the license authorization method applicable to multiple scenarios as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Authorization system and method for product software

    CN114021081A

  • Software authorization method, electronic equipment and storage medium

    CN119128830A

  • Data reporting method and device, equipment, storage medium and product

    CN119484236A