A client application authorization method, computing device and storage medium
By storing the authorization record information of the client application in the server and calculating the repetition rate of the hardware information, and dynamically adjusting the weight value, the problem of client application authorization failure and piracy is solved, and a higher authorization success rate and piracy protection effect are achieved.
Patent Information
- Application Number
- CN202111121696.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-08-02
AI Technical Summary
The existing client application authorization scheme leads to authorization failure after hardware replacement. The low uniqueness of hardware information leads to authorization proliferation, and it is easy to be misappropriated by pirated software, making it difficult to effectively prevent piracy.
By storing the authorization record information of the client application in the server, receiving the client's hardware information and authorization serial number, calculating the repetition rate of the hardware information and dynamically adjusting the weight value, judging whether the weight value is greater than the threshold to determine authorization success or failure, dynamic adjustment Weight thresholds to accommodate hardware replacement and piracy situations.
It effectively reduces the piracy rate, ensures that users can still authorize successfully after hardware replacement, improves user experience, and limits the authorization success rate of the same hardware by dynamically adjusting the weight threshold to prevent authorization proliferation.
Smart Images

Figure CN113849779B
Abstract
Description
[0001] This application is a divisional application of the invention patent application filed on August 2, 2021. The application number of the original application is: 2021108783495, and the name of the invention is: A client application authorization method, computing device and storage medium. Technical Field
[0002] The present invention relates to the field of Internet, and in particular to a client application authorization method, computing equipment and storage medium. Background Art
[0003] With the continuous development of computer technology, client applications are also constantly iterating and developing. At the same time, the authorization problem of client applications is becoming more and more prominent. For paid client application manufacturers, if the client application is cracked and spread, it will bring huge losses to the company. Therefore, the authorization problem of client applications is also an issue that client application companies must pay attention to. Summary of the invention
[0004] In view of the above problems, the present invention is proposed to provide a client application authorization method, a computing device and a storage medium that overcome the above problems or at least partially solve the above problems.
[0005] According to one aspect of the present invention, there is provided a method for authorizing a client application, which is executed in a server, and the server is respectively connected to the client and a data storage device in communication, wherein the data storage device stores authorization record information of the client application, and the authorization record information records each first hardware information corresponding to the client application at each authorization, and the method comprises: receiving an authorization request from a client, the authorization request comprising at least one second hardware information of the client and an authorization serial number of the client application; determining whether the authorization serial number has been authorized; if authorized, comparing each first hardware information with each second hardware information to count the repetition rate of each second hardware information; determining a weight value corresponding to each second hardware information based on the repetition rate of each second hardware information; determining whether the sum of the weight values corresponding to each second hardware information is greater than a weight threshold; if greater than the weight threshold, the client application is authorized successfully.
[0006] Optionally, in the authorization method of the client application according to the present invention, if authorization has been granted, the step of comparing each first hardware information with each second hardware information to count the repetition rate of each second hardware information includes: comparing each second hardware information with each first hardware information one by one, and recording the number of repetitions of each second hardware information with each first hardware information; based on the number of repetitions, calculating the repetition rate of each second hardware information.
[0007] Optionally, in the authorization method for the client application according to the present invention, the weight value corresponding to each piece of second hardware information is in inverse proportion to the repetition rate of each piece of second hardware information.
[0008] Optionally, in the authorization method of the client application according to the present invention, the method for calculating the weight threshold includes: calculating the repetition rate of each first hardware information corresponding to each authorization in all historical authorization records; determining the weight value of each first hardware information based on the repetition rate of each first hardware information; calculating the weighted average value of each first hardware information; and taking the sum of the weighted average values of all first hardware information as the weight threshold.
[0009] Optionally, in the authorization method of the client application according to the present invention, before the step of determining whether the authorization serial number has been authorized, it also includes the step of determining whether the authorization serial number is valid; if invalid, the client application authorization fails; if valid, determining whether the authorization serial number has been authorized.
[0010] Optionally, in the authorization method of the client application according to the present invention, after the step of determining whether the authorization serial number has been authorized, it also includes the following steps: if the authorization serial number has not been authorized, the client application is authorized successfully; each second hardware information is associated with the authorization serial number and stored in the authorization record information to update the first hardware information; and the weight threshold is updated according to the updated first hardware information.
[0011] Optionally, in the authorization method of the client application according to the present invention, after the step of successfully authorizing the client application if it is greater than the weight threshold, the step also includes: storing each second hardware information in association with the authorization serial number in the authorization record information to update the first hardware information; and updating the weight threshold based on the updated first hardware information.
[0012] Optionally, in the authorization method of the client application according to the present invention, after the step of determining whether the sum of the weight values corresponding to each piece of second hardware information is greater than the weight threshold, it also includes the following steps: if the sum of the weight values corresponding to each piece of second hardware information is not greater than the weight threshold, determining whether the client satisfies a preset adjustment rule; if so, adjusting the size of the weight threshold so that the sum of the weight values corresponding to each piece of second hardware information can be greater than the weight threshold.
[0013] Optionally, in the authorization method of the client application according to the present invention, the preset adjustment rule includes: each piece of second hardware information contains hardware information that is configured to be the same as other hardware during factory settings.
[0014] Optionally, in the authorization method of the client application according to the present invention, the step of determining the weight value corresponding to each piece of second hardware information based on the repetition rate of each piece of second hardware information includes:
[0015] The absolute value of the difference between the unit 1 and the repetition rate of each piece of hardware information is used as the weight value corresponding to each piece of hardware information; or the inverse of the repetition rate of each piece of hardware information is used as the weight value corresponding to each piece of hardware information.
[0016] According to another aspect of the present invention, there is provided a computing device, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be suitable for being executed by the at least one processor, and the program instructions include instructions for executing the above method.
[0017] According to another aspect of the present invention, a readable storage medium storing program instructions is provided. When the program instructions are read and executed by a computing device, the computing device executes the above method.
[0018] According to the solution of the present invention, by dynamically adjusting the weight of hardware information, the authorization success rate of the same hardware information can be limited, thereby achieving the purpose of reducing the piracy rate.
[0019] According to the solution of the present invention, part of the hardware can be replaced under the premise that the hardware information meets the authorization requirements, and by dynamically adjusting the weight threshold, the client can still be authorized successfully under the condition of replacing part of the hardware, giving the user a certain degree of freedom, thereby improving the user experience and avoiding authorization failures caused by hardware replacement.
[0020] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0022] Figure 1 A flow chart of a client application authorization method 100 in the prior art is shown;
[0023] Figure 2 A schematic diagram of a client application authorization system 200 according to an embodiment of the present invention is shown;
[0024] Figure 3 shows a block diagram of a computing device 300 according to an embodiment of the present invention;
[0025] Figure 4 A flowchart of a method 400 for authorizing a client application according to an embodiment of the present invention is shown;
[0026] Figure 5 A flowchart of a method 500 for authorizing a client application according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0027] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0028] In the currently popular client application authorization scheme, the authorization server generally requires the client to provide a valid authorization serial number and binding information of individual fixed hardware information (such as motherboard, hard disk, etc.). When the authorization server receives this binding information, it will compare it with the authorized information in the authorization server database. If the same serial number and binding information of fixed hardware information exists in the database, the authorization is considered successful. At this time, the authorization server sends a successful authorization notification to the client. If the same serial number and binding information of fixed hardware information does not exist in the authorization server database, the authorization fails.
[0029] Figure 1 FIG. 1 is a flow chart of a client application authorization method 100 in the prior art. Figure 1 As shown, after receiving the authorization verification request sent by the client, the authorization server first determines whether the authorization serial number has been authorized. If the authorization serial number is authorized for the first time (that is, it has not been authorized), the client application is deemed to be authorized successfully, and the authorization serial number and the corresponding client hardware information are stored in the data storage device; if the authorization serial number has been authorized, the corresponding hardware information is compared with the hardware information bound to the corresponding authorization serial number in the data storage device to determine whether the two are the same. If they are different, the client application authorization fails; if they are the same, the client application is authorized successfully, and the authorization serial number and the corresponding client hardware information are stored in the data storage device.
[0030] The above client application authorization method has the following defects:
[0031] 1) When the client replaces a piece of hardware in the authorization information for some reason, the authorization will fail due to inconsistent hardware information when the server verifies the authorization. For example, the hardware information in the authorization information is the hard disk information. After the user replaces the hard disk, when the authorization is verified again, the server cannot find the hard disk information corresponding to the authorization serial number, resulting in the authorization failure of the originally authorized machine.
[0032] 2) Due to the low uniqueness of the hardware information in the selected authorization information, in some cases, multiple client applications can obtain authorization by using the authorized serial number and the same hardware information. For example, when the hard disk model is selected as the hardware information bound to the authorization, clients of the same batch of hard disk models can use one serial number to complete the authorization of all machines, resulting in the diffusion of authorization.
[0033] 3) Due to the non-standard operation of some hardware manufacturers, some hardware information that should be unique may appear identical. For example, some non-standard motherboard serial numbers may appear identical. If the hardware information bound to the authorization information happens to be the motherboard serial number, then when the same authorization serial number is used, the authorization of all clients with the same motherboard serial number can be completed.
[0034] 4) Due to some malicious pirated software, the authorized serial number is used, and the hardware information bound in the authorization information is tampered with at the same time, resulting in the authorization being pirated. For example: when the client obtains the machine hardware information, the pirated software intercepts it and returns the authorized hardware information to the client, so that the authorization serial number and hardware information sent by the client to the server are those that have been authorized by other machines, resulting in the authorization being pirated.
[0035] In order to solve the above problems in the prior art, the solution of the present invention is proposed. Specifically, Figure 2 As shown, Figure 2 FIG. 2 is a schematic diagram of a client application authorization system 200 according to an embodiment of the present invention. The client application authorization system 200 includes a client 210 and a computing device 220 .
[0036] The client 210 is a terminal device used by the user, which can be a personal computer such as a desktop computer or a laptop computer, or a mobile phone, a tablet computer, a multimedia device, a smart wearable device, etc., but not limited thereto. The client 210 has a browser or an application program resident therein, and accesses the computing device 220 on the Internet through the browser or the application program. In the following, the browser and the application program are collectively referred to as client applications. Accordingly, the computing device 220 is used to provide services to the client 210, and can be implemented as a server, such as an application server, a Web server, etc.; it can also be implemented as a desktop computer, a laptop computer, a processor chip, a tablet computer, etc., but not limited thereto.
[0037] According to one embodiment, the computing device 220 can provide authorization services for client applications to the client 210. When the user opens the client application in the client 210, the client 210 will send an authorization request to the computing device 220. The computing device 220 will usually return an authorization success or authorization failure result to the client application based on the authorization request data.
[0038] In one embodiment, the authorization system 200 of the client application further includes a data storage device 230. The data storage device 230 may be a relational database such as MySQL, ACCESS, etc., or a non-relational database such as NoSQL, etc.; it may be a local database residing in the computing device 220, or it may be a distributed database such as HBase, etc., which is set in multiple geographical locations. In short, the data storage device 230 is used to store data, and the present invention does not limit the specific deployment and configuration of the data storage device 230.
[0039] The computing device 220 may be connected to the data storage device 230 and obtain data stored in the data storage device 230. For example, the computing device 220 may directly read the data in the data storage device 230 (when the data storage device 230 is a local database of the computing device 220), or may access the Internet in a wired or wireless manner and obtain data in the data storage device 230 through a data interface.
[0040] In this embodiment, the data storage device 230 is suitable for storing the authorization record information of the client application. The authorization record information records the first hardware information and the authorization serial number corresponding to each client application each time it is authorized. In other words, each time the server performs the client application authorization service, it will store the received authorization serial number and hardware information in the authorization record information, and specially mark the authorized authorization serial number and hardware information.
[0041] Yet another embodiment of the present invention provides a method for authorizing a client application, which can be executed in a computing device. Figure 3 FIG. 3 shows a block diagram of a computing device 300 according to an embodiment of the present invention. Figure 3 As shown, in a basic configuration 302, computing device 300 typically includes a system memory 306 and one or more processors 304. A memory bus 308 may be used for communication between processor 304 and system memory 306.
[0042] Depending on the desired configuration, the processor 304 can be any type of processor, including but not limited to: a microprocessor (μP), a microcontroller (μC), a digital information processor (DSP), or any combination thereof. The processor 304 can include one or more levels of cache such as a first-level cache 310 and a second-level cache 312, a processor core 314, and registers 316. An example processor core 314 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 318 can be used with the processor 304, or in some implementations, the memory controller 318 can be an internal part of the processor 304.
[0043] Depending on the desired configuration, the system memory 306 can be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.) or any combination thereof. The physical memory in the computing device usually refers to the volatile memory RAM, and the data in the disk needs to be loaded into the physical memory before it can be read by the processor 304. The system memory 306 may include an operating system 320, one or more applications 322, and program data 324. The application 322 is actually a plurality of program instructions, which are used to instruct the processor 304 to perform corresponding operations. In some embodiments, in some embodiments, the application 322 may be arranged to execute instructions on the operating system by one or more processors 304 using program data 324. The operating system 320 may be, for example, Linux, Windows, etc., which includes program instructions for processing basic system services and performing tasks that depend on hardware. The application 322 includes program instructions for implementing various user-desired functions, and the application 322 may be, for example, a browser, instant messaging software, a software development tool (such as an integrated development environment IDE, a compiler, etc.), etc., but is not limited thereto. When the application 322 is installed into the computing device 300 , a driver module may be added to the operating system 320 .
[0044] When the computing device 300 starts running, the processor 304 reads and executes the program instructions of the operating system 320 from the system memory 306. The application 322 runs on the operating system 320 and uses the interfaces provided by the operating system 320 and the underlying hardware to implement various functions desired by the user. When the user starts the application 322, the application 322 is loaded into the system memory 306, and the processor 304 reads and executes the program instructions of the application 322 from the system memory 306.
[0045] The computing device 300 also includes a storage device 332 , which includes a removable storage 336 and a non-removable storage 338 , both of which are connected to the storage interface bus 334 .
[0046] The computing device 300 may also include an interface bus 340 that facilitates communication from various interface devices (e.g., output devices 342, peripheral interfaces 344, and communication devices 346) to the basic configuration 302 via the bus / interface controller 330. Example output devices 342 include a graphics processing unit 348 and an audio processing unit 350. They can be configured to facilitate communication with various external devices such as a display or speakers via one or more A / V ports 352. Example peripheral interfaces 344 may include a serial interface controller 354 and a parallel interface controller 356, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices) or other peripherals (e.g., printers, scanners, etc.) via one or more I / O ports 358. Example communication devices 346 may include a network controller 360, which may be arranged to facilitate communication with one or more other computing devices 362 via a network communication link via one or more communication ports 364.
[0047] A network communication link can be an example of a communication medium. Communication media can generally be embodied as computer-readable instructions, data structures, program modules in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A "modulated data signal" can be a signal in which one or more of its data sets or its changes can be carried out in a manner that encodes information in the signal. As non-limiting examples, communication media can include wired media such as a wired network or a dedicated line network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR) or other wireless media. The term computer-readable medium used herein can include both storage media and communication media.
[0048] The computing device 300 also includes a storage interface bus 334 connected to the bus / interface controller 330. The storage interface bus 334 is connected to a storage device 332, which is suitable for data storage. Example storage devices 332 may include removable storage 336 (such as CD, DVD, USB flash drive, removable hard disk, etc.) and non-removable storage 338 (such as hard disk drive HDD, etc.).
[0049] In the computing device 300 according to the present invention, the application 322 includes a plurality of program instructions for executing the method 400 .
[0050] Figure 4 A flow chart of a method 400 for authorizing a client application according to an embodiment of the present invention is shown. The method 400 is suitable for execution in a computing device (e.g., the aforementioned computing device 300). The computing device is a server capable of executing the authorization method, and the server is respectively connected to the client and the data storage device for communication. It should be understood that the data storage device may also be arranged in the server, and this application does not limit this. Among them, the data storage device stores the authorization record information of the client application, and the authorization record information records the first hardware information corresponding to each authorization of the client application.
[0051] like Figure 4 As shown, the purpose of method 400 is to implement an authorization method for client applications, starting from step S402. In step S402, an authorization request from the client is received, and the authorization request includes at least one second hardware information of the client and an authorization serial number of the client application. It should be noted that the second hardware information is all valid hardware information within a specified range, such as motherboard information, bios information, cpu information, memory information, hard disk information, network card information, graphics card information, and sound card information, etc., but is not limited thereto. The client needs to form an authorization request with all the hardware information within the specified range and the authorization serial number and send it to the server.
[0052] In a specific example, the authorization request includes: authorization serial number + motherboard information + BIOS information + CPU information + memory information + hard disk information + network card information + graphics card information + sound card information.
[0053] Of course, users can define the hardware range by themselves, such as making appropriate additions or reductions based on the above-mentioned hardware. This application does not limit this.
[0054] In step S404, it is determined whether the authorization serial number has been authorized. That is, it is determined whether the received authorization serial number has appeared in the previous authorization process. Specifically, it can be compared with the authorization serial number recorded in the authorization record information in the data storage device to see whether there is an identical previous record.
[0055] Of course, before step S404, it is necessary to first determine whether the authorization serial number is a legal and valid authorization serial number. If it is an illegal and invalid authorization serial number, it can be directly determined that the client application authorization has failed, thereby reducing the workload of the server and improving the working performance of the server. Therefore, in some embodiments, before the step of determining whether the authorization serial number has been authorized, the authorization method 400 of the client application also includes the steps of: determining whether the authorization serial number is valid; if invalid, the client application authorization fails; if valid, determining whether the authorization serial number has been authorized.
[0056] In a specific example, the judgment on the legality and validity of the authorization serial number can be based on the rules set by the manufacturer corresponding to the client application when generating the authorization serial number. For example, the authorization serial numbers generated by the manufacturer are all numbers, and the obtained authorization serial number contains non-numbers (for example, letters), which means that the software serial number of the application is illegal; or, the authorization serial number generated by the manufacturer is 11 digits, and the obtained authorization serial number is more or less than 11, which means that the software serial number is illegal, etc. This embodiment is not limited to this.
[0057] For a legal and valid authorization serial number, if it has not been authorized, the corresponding client application is authorized successfully.
[0058] In step S406, if the authorization serial number has been authorized, each piece of first hardware information is compared with each piece of second hardware information to count the repetition rate of each piece of second hardware information.
[0059] Specifically, the repetition rate of each piece of second hardware information may be counted through the following sub-steps:
[0060] First, each piece of second hardware information is compared with each piece of first hardware information one by one, and the number of repetitions between each piece of second hardware information and each piece of first hardware information is recorded.
[0061] In a specific example, the hardware information in the authorization request includes: motherboard information, BIOS information, CPU information, memory information, hard disk information, network card information, graphics card information and sound card information. First, the motherboard information is compared with all the authorized motherboard information in the data storage device, and the number of repetitions is recorded. For example, the authorized motherboard information in the data storage device includes motherboard information 1, motherboard information 2 and motherboard information 3. The motherboard information in the current authorization request is compared with motherboard information 1, motherboard information 2 and motherboard information 3 respectively. When the same is found, the number of repetitions is recorded plus 1. According to the above method, the bios information, cpu information, memory information, hard disk information, network card information, graphics card information and sound card information are respectively compared with the corresponding hardware information that has been authorized in the data storage device, and the number of repetitions of each hardware information is recorded respectively.
[0062] Then, based on the number of repetitions, the repetition rate of each second hardware information is calculated. Specifically, the ratio of the number of repetitions of each hardware information to the total number of corresponding hardware information is used as the repetition rate of the hardware information. For example, the motherboard information repetition rate: 5%, the BIOS information repetition rate: 10%, the CPU information repetition rate: 3%, the memory information repetition rate: 2%, the hard disk information repetition rate: 1%, the network card information repetition rate: 5%, the graphics card information repetition rate: 6%, and the sound card information repetition rate: 10%.
[0063] In step S408, based on the repetition rate of each piece of second hardware information, a weight value corresponding to each piece of second hardware information is determined. Specifically, the weight value corresponding to each piece of second hardware information is inversely proportional to the repetition rate of each piece of second hardware information. In other words, the weight value is set based on the principle that the lower the repetition rate, the greater the weight.
[0064] In some embodiments, the absolute value of the difference between unit 1 and the repetition rate of each piece of hardware information is used as the weight value corresponding to each piece of hardware information; or the inverse of the repetition rate of each piece of hardware information is used as the weight value corresponding to each piece of hardware information.
[0065] In a specific example, the weight value of the motherboard information = 1-the repetition rate of the motherboard information, the weight value of the BIOS information = 1-the repetition rate of the BIOS information, etc. Or the weight value of the motherboard information = 1 / the repetition rate of the motherboard information, the weight value of the BIOS information = 1 / the repetition rate of the BIOS information, etc.
[0066] In step S408, it is determined whether the sum of the weight values corresponding to each piece of second hardware information is greater than the weight threshold. For the sum of the weight values corresponding to each piece of second hardware information, the weight values of all the hardware information in the authorization request are summed. For example, the second hardware information includes motherboard information, BIOS information, CPU information, memory information, hard disk information, network card information, graphics card information, and sound card information. Then, the sum of the weight values corresponding to each piece of second hardware information = the weight value of the motherboard information + the weight value of the BIOS information + the weight value of the CPU information + the weight value of the memory information + the weight value of the hard disk information + the weight value of the network card information + the weight value of the graphics card information + the weight value of the sound card information.
[0067] The weight threshold is pre-stored in the data storage device and is updated in real time as the number of authorization records increases.
[0068] In some embodiments, the weight threshold may be calculated by:
[0069] Step S428: Calculate the repetition rate of each piece of first hardware information corresponding to each authorization in all historical authorization records. As can be seen from the above content, each authorization record corresponds to a set of hardware information.
[0070] In a specific example, taking the motherboard information as an example, the first authorization record corresponds to motherboard information 1, the second authorization record corresponds to motherboard information 2, and the third authorization record corresponds to motherboard information 3. Motherboard information 1 is compared with motherboard information 2 and motherboard information 3, and the repetition rate of motherboard information 1 is calculated. According to this method, the repetition rate of motherboard information, the repetition rate of BIOS information, the repetition rate of CPU information, etc. are calculated respectively.
[0071] Step S448: Determine the weight value of each piece of first hardware information based on the repetition rate of each piece of first hardware information. The calculation of the weight value can refer to step S408, which will not be described in detail here.
[0072] Step S468, calculating a weighted average of the weight values of each piece of first hardware information;
[0073] Step S488: taking the sum of the weighted average values of all the first hardware information as the weight threshold.
[0074] Continuing with the above example, after respectively obtaining the weight value 1 of each motherboard information 1, the weight value 2 of the motherboard information 2, and the weight value 3 of the motherboard information 3 based on the repetition rate of each motherboard information, the weight value 1, the weight value 2, and the weight value 3 are weighted averaged to obtain the standard weight value of each motherboard information = (weight value 1 + weight value 2 + weight value 3) / 3. Based on this method, the standard weight values of other hardware information are obtained respectively, for example, the standard weight value of the BIOS information, the standard weight value of the CPU information, etc.
[0075] In a specific example, the weight threshold = the standard weight value of the motherboard information + the standard weight value of the BIOS information + the standard weight value of the CPU information + the standard weight value of the memory information + the standard weight value of the hard disk information + the standard weight value of the network card information + the standard weight value of the graphics card information + the standard weight value of the sound card information.
[0076] In step S410, if the sum of the weight values corresponding to each piece of second hardware information is greater than the weight threshold, the client application is authorized successfully.
[0077] Of course, taking into account the special situation that there are large batches of the same hardware information on the market, resulting in the client's hardware information weight cannot reach the standard weight of the server's hardware information, therefore, before executing step S410, it is also necessary to take into account the occurrence of the above special situation. Therefore, in some embodiments, if the sum of the weight values corresponding to each second hardware information is not greater than the weight threshold, it is determined whether the client satisfies the preset adjustment rules. If satisfied, the size of the weight threshold is adjusted so that the sum of the weight values corresponding to each second hardware information can be greater than the weight threshold. The adjustment rule here is that each second hardware information contains hardware information that is configured to be the same as other hardware when it is factory set. In other words, it is determined whether there is a large batch of the same hardware information in each second hardware information.
[0078] Specifically, the weight threshold can be reduced by reducing the standard weight value of the corresponding hardware information. For example, if a large batch of motherboard information is the same when the client leaves the factory, the standard weight value of the motherboard information is reduced to reduce the weight threshold, so that the sum of the weight values corresponding to each second hardware information is greater than the weight threshold.
[0079] As mentioned above, the weight threshold is updated in real time as the number of authorization records increases because the number of hardware information in the authorization records increases as the number of authorization records increases. For example, after the client application corresponding to the current authorization request is deemed to be authorized successfully, the authorization record is increased by 1. At this time, the weight threshold is recalculated based on the combination of the second hardware information in the current authorization request and the first hardware information.
[0080] Specifically, in some embodiments, each second hardware information is associated with an authorization serial number and stored in the authorization record information to update the first hardware information. That is, after the client application that currently requests authorization is successfully authorized, the corresponding second hardware information and the authorization serial number become a set of historical authorization records, which are associated and stored in the historical authorization record table in the data storage device, thereby completing the update of the first hardware information. According to the updated first hardware information, the weight threshold is updated. The updated weight threshold is a new weight threshold recalculated by combining the newly added second hardware information with the prior first hardware information. For the calculation method of the weight threshold, reference may be made to the calculation method of the weight threshold in step S408, which will not be repeated here.
[0081] In addition, as mentioned in step S404, if the authorization serial number has not been used, the corresponding client application is authorized successfully. For this, the weight threshold should also be updated according to each second hardware information corresponding to the authorization serial number.
[0082] In a specific example, Figure 5 The flowchart of the authorization method 500 of the client application according to an embodiment of the present invention is shown. Compared with the method 400, the method 500 adds the steps of calculating the weight threshold, updating the weight threshold and verifying the legitimacy of the authorization sequence number, which is more comprehensive. Specifically, the method 500 is described in detail with reference to the following steps:
[0083] Step S501: traverse all hardware information in the data storage device and calculate the weight threshold. The specific calculation process can refer to the calculation steps of the weight threshold in the above method 400, which will not be repeated here. The weight threshold is stored in the data storage device.
[0084] Step S502: Receive an authorization request from the client.
[0085] Step S503: determine whether the authorization serial number is legal. If it is legal, proceed to step S504, otherwise, the client application authorization fails.
[0086] Step S504: Determine whether the authorization serial number has been authorized. If it is the first authorization, the client is authorized successfully and proceeds to step S509. Otherwise, proceed to step S505.
[0087] Step S505: Calculate the repetition rate of the client hardware information.
[0088] Step S506: Calculate the weight value of the client hardware information.
[0089] Step S507: Determine whether the weight value of the client hardware information is not less than the weight threshold. If so, the client application is authorized successfully, otherwise, proceed to step S508.
[0090] Step S508, determine whether the client hardware information meets the preset adjustment rule. If it does, adjust the weight threshold so that the client application is successfully authorized, and proceed to step S509. If it does not meet, the client application authorization fails. Specifically, the preset adjustment rule is that there is hardware information in each second hardware information that is configured to be the same as other hardware when it is factory set.
[0091] Step S509: Update the weight threshold based on the client hardware information in the current authorization request.
[0092] The method provided by the present invention requires the client to upload all valid hardware information (such as motherboard, Bios, hard disk, CPU, network card, memory, graphics card, sound card and other hardware information) within a specified range when the client application requests authorization or requests verification of authorization. All hardware information is bound to the serial number as authorization information, and the weight of each hardware information is calculated at the same time. Then the value of the standard weight that can pass the authorization authentication is calculated. In this way, in the future long-term authorization process, the server compares the hardware information obtained at each authorization with all other authorized hardware information in the data storage device, and reduces the weight of the corresponding hardware information with a high repetition rate. For long-term unique non-repetitive hardware information, its weight is increased, so that some hardware with the highest uniqueness can be verified and obtained through a large amount of data. Then in the later authorization verification process, when the hardware information weight value received by the authorization server from the client is less than the weight value of the authorization standard, the authorization verification fails, otherwise the authorization verification succeeds. Therefore, when pirated software frequently uses the same serial number and the same hardware information for authorization, the weight of these corresponding hardware information will be reduced. When the weight drops to less than the authorization standard value, the pirated software becomes invalid, increasing the difficulty of cracking the pirated software and reducing the piracy rate.
[0093] When the client replaces some hardware, it only needs to ensure that the information weight after the replacement reaches the authorization standard. Or because the information of a large number of hardware on the market is consistent, the standard authorization weight value can be dynamically adjusted to make these machines authorized successfully.
[0094] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or parts of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0095] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the method of the present invention according to the instructions in the program code stored in the memory.
[0096] By way of example and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information transfer medium. Any combination of the above is also included within the scope of readable media.
[0097] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to implement the content of the present invention described herein, and the above description of specific languages is for the purpose of disclosing the preferred embodiment of the present invention.
[0098] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0099] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0100] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
[0101] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0102] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0103] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0104] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0105] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative and not restrictive with respect to the scope of the present invention, and the scope of the present invention is defined by the appended claims.
Claims
1. A method for authorizing a client application, executed in a server, wherein the server is in communication connection with a client and a data storage device, respectively, wherein: The data storage device stores authorization record information of the client application, and the authorization record information records each piece of first hardware information corresponding to each authorization of the client application. The method includes: receiving an authorization request from the client, the authorization request including at least one second hardware information of the client and an authorization serial number of a client application; Determine whether the authorization serial number has been authorized; If authorized, compare each first hardware information with each second hardware information to count the repetition rate of each second hardware information, compare each second hardware information with each first hardware information one by one, and record the number of repetitions of each second hardware information with each first hardware information, and calculate the repetition rate of each second hardware information based on the number of repetitions; Based on the repetition rate of each piece of the second hardware information, determine a weight value corresponding to each piece of the second hardware information, wherein the weight value corresponding to each piece of the second hardware information is inversely proportional to the repetition rate of each piece of the second hardware information; Determine whether the sum of the weight values corresponding to each of the second hardware information is greater than a weight threshold; If it is greater than the weight threshold, the client application is authorized successfully.
2. The method of claim 1, wherein: The method for calculating the weight threshold includes: Calculate the repetition rate of each piece of first hardware information corresponding to each authorization in all historical authorization records respectively; Determine a weight value of each piece of the first hardware information based on a repetition rate of each piece of the first hardware information; Calculating a weighted average of the weight values of each of the first hardware information; The sum of the weighted average values of all the first hardware information is used as the weight threshold.
3. The method of claim 1, wherein: Before the step of determining whether the authorization serial number has been authorized, the method further includes the following steps: Determine whether the authorization serial number is valid; If invalid, the client application authorization fails; If valid, determine whether the authorization serial number has been authorized.
4. The method according to any one of claims 1 to 3, wherein: After the step of determining whether the authorization serial number has been authorized, the method further includes the following steps: If the authorization serial number has not been authorized, the client application is authorized successfully; Associating each of the second hardware information with the authorization serial number and storing them in the authorization record information to update the first hardware information; The weight threshold is updated according to the updated first hardware information.
5. The method of claim 1, wherein: After the step of "if the weight is greater than the weight threshold, the client application is authorized successfully", the following steps are also included: Associating each of the second hardware information with the authorization serial number and storing it in the authorization record information to update the first hardware information; The weight threshold is updated according to the updated first hardware information.
6. The method of claim 1, wherein: After the step of determining whether the sum of the weight values corresponding to each piece of second hardware information is greater than the weight threshold, the step further includes: If the sum of the weight values corresponding to the second hardware information is not greater than the weight threshold, determining whether the client satisfies a preset adjustment rule; If the condition is satisfied, the weight threshold is adjusted so that the sum of the weight values corresponding to the respective pieces of second hardware information can be greater than the weight threshold.
7. The method of claim 6, wherein: The preset adjustment rules include: Each piece of second hardware information includes hardware information that is configured to be the same as other hardware at the time of factory setting.
8. A computing device comprising: at least one processor; and A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for executing the method according to any one of claims 1 to 7.
9. A readable storage medium storing program instructions, when the program instructions are read and executed by a computing device, the computing device executes the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Software authorization method and system based on virtual machine
CN103077345A
Software license management method, software protection method and devices
CN106897585A
A software authorization protection system and method based on a timestamp and a secret authentication file
CN109598104A
Software content use authorization method
CN110162936A
Terminal application management method, terminal device, cloud server and storage medium
CN110855598A
