Printer authorization use method, apparatus, device, and storage medium

By decrypting and matching printer authorization codes and server authorization codes, the problem of continuing to use printers after their authorizations have expired has been solved, thus achieving legal and reasonable authorization management.

CN119415049BActive Publication Date: 2026-03-31SHENZHEN PRECISION INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to avoid situations where users continue to use the printer's document management software after the license expires, or where different account holders use the same license.

Method used

The system obtains the server authorization code and printer authorization code to be verified, decrypts them, and matches them with the authorization code of the pre-generated authorized account. The printer is activated only when the match is successful.

Benefits of technology

This effectively prevents users from continuing to use the service after the authorization expires or different account holders from using the same authorization, ensuring the legality and rationality of the authorized use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415049B_ABST
    Figure CN119415049B_ABST
Patent Text Reader

Abstract

The application relates to a printer authorization use method, device, equipment and storage medium, the method comprises the following steps: in response to the request of a user using a printer, obtaining the to-be-verified server authorization code and the to-be-verified printer authorization code carried in the request; after the to-be-verified server authorization code is decrypted, the to-be-verified server authorization code is matched with the server authorization code of the pre-generated authorization account to obtain a first matching result; after the to-be-verified printer authorization code is decrypted, the to-be-verified printer authorization code is matched with the printer authorization code of the pre-generated authorization account to obtain a second matching result; if the first matching result and the second matching result both indicate that the matching is successful, the user is allowed to use the printer. The application can avoid the situation that the user continues to use the printer after the authorization expires, the authorization is repeatedly installed and used, or different account subjects mix the authorization of the printer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of printer control technology, and in particular to a printer licensing method, apparatus, device and storage medium. Background Technology

[0002] Document management software, also known as print management software or document output management software, is a tool for comprehensive management of office printing work. By centrally managing daily printing, copying, and scanning tasks, it effectively improves work efficiency, reduces equipment wear and tear, and controls printing costs.

[0003] Currently, printer equipment lessors can grant lessees the corresponding usage period or permissions for using the printer's document management software or a specific function within the document management software, based on actual business needs. However, in practice, situations may arise where lessee users continue to use the document management software or function after the authorization expires, or where authorization is repeatedly granted for installation and use, or where different account holders use the software for mixed purposes.

[0004] Therefore, how to prevent users from continuing to use the printer after the license expires, from repeatedly installing and using the printer with the same license, or from different account holders using the printer together has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] In view of the above, this application provides a printer licensing method, apparatus, device and storage medium, the purpose of which is to solve the above-mentioned technical problems.

[0006] Firstly, this application provides a method for authorizing the use of a printer, the method comprising:

[0007] In response to a user's request to use the printer, obtain the server authorization code and printer authorization code to be verified carried in the request;

[0008] After decrypting the server authorization code to be verified, it is matched with the server authorization code of the pre-generated authorized account to obtain the first matching result;

[0009] After decrypting the printer authorization code to be verified, it is matched with the printer authorization code of the pre-generated authorized account to obtain a second matching result;

[0010] If both the first and second matching results indicate a successful match, then the user is activated and allowed to use the printer.

[0011] Secondly, this application provides a printer licensing device, the device comprising:

[0012] Acquisition module: used to respond to a user's request to use the printer and acquire the server authorization code and printer authorization code to be verified carried in the request;

[0013] First matching module: used to decrypt the server authorization code to be verified and match it with the server authorization code of the pre-generated authorized account to obtain the first matching result;

[0014] The second matching module is used to decrypt the printer authorization code to be verified and match it with the printer authorization code of the pre-generated authorized account to obtain a second matching result.

[0015] Activation module: If both the first matching result and the second matching result indicate a successful match, then activate and allow the user to use the printer.

[0016] Thirdly, this application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0017] Memory, used to store computer programs;

[0018] When a processor executes a program stored in memory, it implements the printer licensing method described in any embodiment of the first aspect.

[0019] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the printer licensing method as described in any embodiment of the first aspect.

[0020] The technical solutions provided in this application have the following advantages compared with the prior art:

[0021] This application, in response to a user's request to use the printer, obtains the server authorization code and printer authorization code to be verified carried in the request. After decrypting the server authorization code, it matches it with the server authorization code of a pre-generated authorized account to obtain a first matching result. Similarly, after decrypting the printer authorization code, it matches it with the printer authorization code of a pre-generated authorized account to obtain a second matching result. If both the first and second matching results indicate successful matching, the printer is activated and the user is allowed to use it. Since the printer's document management software or a specific authorization function within it may have a limited validity period, verifying the authorization code (server authorization code and printer authorization code) when a user needs to use the printer's document management software or a specific authorization function within it prevents situations such as users continuing to use the printer after its authorization has expired, repeated installation and use of the same authorization, or different account holders using the same printer for different purposes. Attached Figure Description

[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0023] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a flowchart illustrating an embodiment of the printer licensing method of this application;

[0025] Figure 2 This is a schematic diagram of a module of an embodiment of the printer licensed use device of this application;

[0026] Figure 3 This is a schematic diagram of an embodiment of the electronic device of this application;

[0027] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0029] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0030] This application provides a method for authorizing the use of a printer. (See reference...) Figure 1 The diagram shown is a flowchart illustrating an embodiment of the printer licensing method of this application. This method can be executed by an electronic device, which can be implemented in software and / or hardware. The printer licensing method includes:

[0031] Step S10: Respond to the user's request to use the printer, and obtain the server authorization code and printer authorization code to be verified carried in the request;

[0032] Step S20: After decrypting the server authorization code to be verified, match it with the server authorization code of the pre-generated authorized account to obtain the first matching result;

[0033] Step S30: After decrypting the printer authorization code to be verified, match it with the printer authorization code of the pre-generated authorized account to obtain a second matching result;

[0034] Step S40: If both the first matching result and the second matching result indicate a successful match, then activate and allow the user to use the printer.

[0035] The printer has multiple functions such as high-speed printing, batch scanning, and print job encryption. It also includes various software such as document management software, secure printing software, and scanning software. Users can configure usage periods and permissions for these functions and software, meaning authorization is required to use these functions or software. In this embodiment, the user's use of the printer can be limited to authorized functions, authorized software, or ordinary functions; no specific limitation is made here. However, in actual printer use, situations may arise where users continue to use expired software or function licenses, licenses are repeatedly installed and used, or licenses from different account holders are mixed. Therefore, users need to verify their authorization status when using the printer.

[0036] Taking the user's use of the printer's document management software or a certain authorization function within the document management software as an example, the solution of this embodiment will be described. The user can initiate a request to use the printer by entering the server authorization code to be verified and the printer authorization code to be verified through the terminal's interactive interface. The terminal responds to the request and obtains the server authorization code and the printer authorization code to be verified carried in the request. If the server authorization code to be verified passes the verification, the server can be activated. If the printer authorization code to be verified passes the verification, the printer can be activated. After the server and printer are activated, the user can use the printer's document management software or a certain authorization function within the document management software.

[0037] A pending server authorization code refers to the authorization code assigned to a user by the server after the user has obtained authorization for the printer's document management software. This server authorization code is generated using the server's hardware serial number and relevant information about the authorized account. Similarly, a pending printer authorization code refers to the authorization code assigned to a user by the printer after the user has obtained authorization for the printer's document management software. This printer authorization code is generated using the printer's hardware serial number, network address, and relevant information about the authorized account.

[0038] After decrypting the server authorization code to be verified, the decryption result includes the server's basic code and the user's relevant information. This decryption result is then matched against the pre-generated server authorization code of the authorized account to obtain a matching result (denoted as the first matching result). The authorized account's server authorization code is generated by encrypting the authorized account's server hardware basic code and related information. If the first matching result indicates a successful match, it means the server authorization code has passed verification, and server activation is successful. If the first matching result indicates a failed match, it means the server authorization code has failed verification, and server activation fails, meaning the user is not allowed to use the printer's document management software or any authorization function within the document management software.

[0039] After decrypting the printer authorization code to be verified, the decryption result includes the printer's hardware serial number, network address, and authorized account information. This decryption result is then matched with a pre-generated printer authorization code for the authorized account to obtain a matching result (referred to as the second matching result). The authorized account's printer authorization code is generated by encrypting the printer's hardware serial number, network address, and authorized account information. If the second matching result indicates a successful match, the printer authorization code has passed verification, and the printer is successfully activated. If the second matching result indicates a failed match, the printer authorization code has failed verification, and printer activation fails, meaning the user is not allowed to use the printer's document management software or any authorization function within the document management software.

[0040] If both the first and second matching results indicate a successful match, the server and printer are both successfully activated. At this point, the user is allowed to use the printer's document management software or a specific authorized function within the document management software. If the first and / or second matching results indicate a failed verification, the server and / or printer activation fails. In this case, the user is denied access to the printer's document management software or a specific authorized function within the document management software.

[0041] Since authorizations may have a certain expiration date and usage time, when users need to use the printer's document management software or a certain authorization function in the document management software, they can verify the authorization by using two authorization codes: the authorization code to be verified on the server and the authorization code to be verified on the printer. This can prevent users from continuing to use the printer after the authorization has expired, repeatedly installing and using the same authorization, or mixing authorizations from different account holders.

[0042] In one embodiment, the process of generating the server authorization code for the authorized account includes:

[0043] Read multiple hardware serial numbers from the server;

[0044] After encrypting each hardware serial number of the server, the encrypted results are concatenated to obtain the server hardware base code of the authorized account.

[0045] Read the relevant information of the authorized account;

[0046] The server hardware base code of the authorized account is combined with the relevant information of the authorized account to generate the first string to be encrypted;

[0047] The first string to be encrypted is encrypted to obtain the server authorization code of the authorized account.

[0048] The system reads the server's motherboard serial number, CPU serial number, C drive hard drive serial number, etc., and encrypts each hardware serial number using the MD5 algorithm. The encrypted results for each hardware serial number are then concatenated and converted into a full-uppercase string to serve as the server hardware base code for the authorized account. The system then reads the relevant information of the authorized account, including at least one of the following: printer license validity period, account information, license version number, and value-added service information. The server hardware base code and the relevant information of the authorized account are combined to generate a standard JSON string (denoted as the first string to be encrypted). This first string is then encrypted using the AES algorithm to obtain the server authorization code for the authorized account.

[0049] Furthermore, the aforementioned step of "decrypting the server authorization code to be verified and matching it with the server authorization code of the pre-generated authorized account to obtain a first matching result" specifically includes:

[0050] The authorization code of the server to be verified is decrypted to obtain the decrypted basic code of the server to be verified and the relevant information of the user.

[0051] The server base code to be verified is compared with the server hardware base code of the authorized account to obtain the first comparison result;

[0052] The user's relevant information is compared with the authorized account's relevant information to obtain a second comparison result;

[0053] If both the first comparison result and the second comparison result indicate a match, then the first matching result indicates a successful match.

[0054] The AES algorithm is used to decrypt the authorization code of the server to be verified, obtaining the decrypted basic code of the server to be verified and the user's relevant information (including printer authorization period, main account information, authorization version number, and value-added service information). The decryption result is a standard JSON string. The decrypted basic code of the server to be verified is compared with the server hardware basic code of the authorized account, obtaining a comparison result (denoted as the first comparison result). The server hardware basic code of the authorized account can also be obtained by re-encrypting and concatenating multiple hardware serial numbers of the server. The user's relevant information is compared with the relevant information of the authorized account, obtaining a comparison result (denoted as the second comparison result). If both the first and second comparison results indicate a match, the first matching result indicates a successful match. After a successful match, the authorization-related information is written, resulting in successful server activation. If there is an inconsistency between the two comparison results, the first matching result indicates a matching failure. For example, if the user's relevant information is inconsistent with the authorized account's relevant information (e.g., inconsistent authorization period, inconsistent main account information, etc.), the server cannot be activated at this time. This can prevent the user from continuing to use the device after the authorization expires, the device from being repeatedly authorized for installation and use, or the printer being used by different account holders.

[0055] In one embodiment, the process of generating the printer authorization code for the authorized account includes:

[0056] Read the printer's hardware serial number and network address;

[0057] Read the relevant information of the authorized account;

[0058] The printer's hardware serial number, the network address, and the authorized account's relevant information are combined based on preset combination rules to obtain a second string to be encrypted;

[0059] The second string to be encrypted is encrypted to obtain the printer authorization code of the authorized account.

[0060] The printer's motherboard serial number, brand and model, MAC address, IP address, and other information are retrieved to generate a labeled JSON string. Relevant information from the authorized account (including printer license validity period, main account information, license version number, and value-added service information) is read and combined to form the string to be encrypted (denoted as the second string to be encrypted) according to the following rules:

[0061] [Motherboard Serial Number @=@Brand and Model @=@MAC Address @=@IP Address @=@Authorized Usage Period @=@Main Account Information]. It should be noted that the preset combination rules can also use other characters for concatenation, and the order of concatenation can also be changed. No specific restrictions are placed on the concatenated characters or their order here. The second string to be encrypted is then encrypted using the AES algorithm to obtain the printer authorization code for the authorized account.

[0062] Furthermore, the step of "decrypting the printer authorization code to be verified and matching it with the printer authorization code of the pre-generated authorized account to obtain a second matching result" specifically includes:

[0063] The authorization code of the printer to be verified is decrypted to obtain the decrypted hardware serial number to be verified, the network address to be verified, and the relevant information of the user.

[0064] The hardware serial number to be verified is matched with the hardware serial number of the printer;

[0065] Match the network address to be verified with the network address of the printer;

[0066] Match the user's information with the information of the authorized account;

[0067] If both matches are successful, the second matching result indicates a successful match.

[0068] The AES algorithm is used to decrypt the printer authorization code to be verified, obtaining the decrypted hardware serial number, network address, and user information. This decryption result is a plaintext rule string. The field information is extracted using "@=@" to obtain the hardware serial number, network address, and user information. The motherboard serial number, brand and model, MAC address, IP address, user's authorization period, and user's main account information of the printer to be verified are matched with the corresponding information in the printer authorization code of the authorized account. The matching result is recorded as the second matching result. If all matches are successful, it means that the second matching result indicates a successful match.

[0069] If the hardware serial number to be verified fails to match the printer's hardware serial number, or the network address to be verified fails to match the printer's network address, or the user's information fails to match the authorized account's information, then the matching result in Explanation Two indicates a matching failure. For example, if the printer's motherboard serial number fails to match, or the IP address fails to match, or the license period fails to match, the printer cannot be activated. This prevents situations where users continue to use the printer after the license expires, where licenses are repeatedly installed and used, or where different account holders use the same printer.

[0070] Reference Figure 2 The diagram shown is a functional module schematic of the printer authorization device 100 of this application.

[0071] The printer authorization device 100 described in this application can be installed in an electronic device. Depending on the functions implemented, the printer authorization device 100 may include an acquisition module 110, a first matching module 120, a second matching module 130, and an activation module 140. The module described in this application can also be referred to as a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.

[0072] In this embodiment, the functions of each module / unit are as follows:

[0073] Module 110: Used to respond to a user's request to use the printer and obtain the server authorization code and printer authorization code to be verified carried in the request;

[0074] First matching module 120: used to decrypt the server authorization code to be verified and match it with the server authorization code of the pre-generated authorized account to obtain a first matching result;

[0075] The second matching module 130 is used to decrypt the printer authorization code to be verified and match it with the printer authorization code of the pre-generated authorized account to obtain a second matching result.

[0076] Activation module 140: If both the first matching result and the second matching result indicate a successful match, then activate and allow the user to use the printer.

[0077] In one embodiment, the process of generating the server authorization code for the authorized account includes:

[0078] Read multiple hardware serial numbers from the server;

[0079] After encrypting each hardware serial number of the server, the encrypted results are concatenated to obtain the server hardware base code of the authorized account.

[0080] Read the relevant information of the authorized account;

[0081] The server hardware base code of the authorized account is combined with the relevant information of the authorized account to generate the first string to be encrypted;

[0082] The first string to be encrypted is encrypted to obtain the server authorization code of the authorized account.

[0083] In one embodiment, the process of generating the printer authorization code for the authorized account includes:

[0084] Read the printer's hardware serial number and network address;

[0085] Read the relevant information of the authorized account;

[0086] The printer's hardware serial number, the network address, and the authorized account's relevant information are combined based on preset combination rules to obtain a second string to be encrypted;

[0087] The second string to be encrypted is encrypted to obtain the printer authorization code of the authorized account.

[0088] In one embodiment, the step of decrypting the server authorization code to be verified and matching it with the server authorization code of a pre-generated authorized account to obtain a first matching result includes:

[0089] The authorization code of the server to be verified is decrypted to obtain the decrypted basic code of the server to be verified and the relevant information of the user.

[0090] The server base code to be verified is compared with the server hardware base code of the authorized account to obtain the first comparison result;

[0091] The user's relevant information is compared with the authorized account's relevant information to obtain a second comparison result;

[0092] If both the first comparison result and the second comparison result indicate a match, then the first matching result indicates a successful match.

[0093] In one embodiment, the step of decrypting the printer authorization code to be verified and matching it with the printer authorization code of a pre-generated authorized account to obtain a second matching result includes:

[0094] The authorization code of the printer to be verified is decrypted to obtain the decrypted hardware serial number to be verified, the network address to be verified, and the relevant information of the user.

[0095] The hardware serial number to be verified is matched with the hardware serial number of the printer;

[0096] Match the network address to be verified with the network address of the printer;

[0097] Match the user's information with the information of the authorized account;

[0098] If both matches are successful, the second matching result indicates a successful match.

[0099] In one embodiment, the relevant information of the authorized account includes at least one of the following: printer authorization period, main account information, authorization version number, and value-added service item information.

[0100] In one embodiment, the activation module 140 is further configured to:

[0101] If the first matching result and / or the second matching result indicate that the verification failed, then the user is denied access to the printer.

[0102] Reference Figure 3 The diagram shown is a schematic representation of a preferred embodiment of the electronic device of this application.

[0103] The electronic device includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0104] Memory 113 is used to store computer programs, such as printer license programs;

[0105] In some embodiments, the processor 111 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 111 is typically used to control the overall operation of the electronic device, such as performing data interaction or communication-related control and processing. In this embodiment, the processor 111 is used to run program code stored in the memory 113 or process data, such as running program code for a printer licensing program.

[0106] The communication interface 112 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The communication interface 112 may also be used to establish a communication connection between the electronic device and other electronic devices.

[0107] The memory 113 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 113 may be an internal storage unit of the electronic device, such as the hard disk or memory of the electronic device. In other embodiments, the memory 113 may also be an external storage device of the electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. of the electronic device. Of course, the memory 113 may include both internal storage units and external storage devices of the electronic device. In this embodiment, the memory 113 is typically used to store the operating system and various computer programs installed on the electronic device, such as the program code of a printer license program. In addition, the memory 113 may also be used to temporarily store various types of data that have been output or will be output.

[0108] Figure 3 Only an electronic device with components 111-114 is shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0109] In one embodiment of this application, when the processor 111 executes the program stored in the memory 113, it implements the printer licensing method provided in any of the foregoing method embodiments, including:

[0110] In response to a user's request to use the printer, obtain the server authorization code and printer authorization code to be verified carried in the request;

[0111] After decrypting the server authorization code to be verified, it is matched with the server authorization code of the pre-generated authorized account to obtain the first matching result;

[0112] After decrypting the printer authorization code to be verified, it is matched with the printer authorization code of the pre-generated authorized account to obtain a second matching result;

[0113] If both the first and second matching results indicate a successful match, then the user is activated and allowed to use the printer.

[0114] For a detailed explanation of the above steps, please refer to the above. Figure 1A flowchart illustrating an embodiment of a printer licensing method.

[0115] Furthermore, embodiments of this application also propose a computer-readable storage medium, which can be non-volatile or volatile. The computer-readable storage medium includes a data storage area and a program storage area. The program storage area stores a printer authorization program, which, when executed by a processor, performs the following operations:

[0116] In response to a user's request to use the printer, obtain the server authorization code and printer authorization code to be verified carried in the request;

[0117] After decrypting the server authorization code to be verified, it is matched with the server authorization code of the pre-generated authorized account to obtain the first matching result;

[0118] After decrypting the printer authorization code to be verified, it is matched with the printer authorization code of the pre-generated authorized account to obtain a second matching result;

[0119] If both the first and second matching results indicate a successful match, then the user is activated and allowed to use the printer.

[0120] The specific implementation of the computer-readable storage medium in this application is largely the same as the specific implementation of the printer licensing method described above, and will not be repeated here.

[0121] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0122] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0123] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.

[0124] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.

[0125] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method of authorizing use of a printer, the method comprising: The method comprises: In response to a request of a user using a printer, obtaining a to-be-verified server authorization code and a to-be-verified printer authorization code carried in the request, the to-be-verified server authorization code being an authorization code assigned to the user by a server after the user obtains authorization of a print management software of the printer, and the to-be-verified printer authorization code being an authorization code assigned to the user by the printer after the user obtains authorization of the print management software of the printer; decrypting the to-be-verified server authorization code and matching the decrypted to-be-verified server authorization code with a server authorization code of an authorized account generated in advance to obtain a first matching result, wherein the server authorization code of the authorized account is generated by encrypting a server hardware base code of the authorized account and related information of the authorized account; decrypting the to-be-verified printer authorization code and matching the decrypted to-be-verified printer authorization code with a printer authorization code of the authorized account generated in advance to obtain a second matching result, wherein the printer authorization code of the authorized account is generated by encrypting a hardware serial number of the printer, a network address of the printer, and the related information of the authorized account; if both the first matching result and the second matching result indicate a successful match, activating and allowing the user to use the printer; wherein the decrypting the to-be-verified server authorization code and matching the decrypted to-be-verified server authorization code with the server authorization code of the authorized account generated in advance to obtain the first matching result comprises: decrypting the to-be-verified server authorization code to obtain a decrypted to-be-verified server base code and related information of the user; comparing the to-be-verified server base code with the server hardware base code of the authorized account to obtain a first comparison result; comparing the related information of the user with related information of the authorized account to obtain a second comparison result; if both the first comparison result and the second comparison result indicate a consistent comparison, the first matching result indicates a successful match; the decrypting the to-be-verified printer authorization code and matching the decrypted to-be-verified printer authorization code with the printer authorization code of the authorized account generated in advance to obtain the second matching result comprises: decrypting the to-be-verified printer authorization code to obtain a decrypted to-be-verified hardware serial number, a decrypted to-be-verified network address, and the related information of the user; matching the decrypted to-be-verified hardware serial number with the hardware serial number of the printer; matching the decrypted to-be-verified network address with the network address of the printer; matching the related information of the user with the related information of the authorized account; if both the matching is successful, the second matching result indicates a successful match.

2. The printer authorization use method of claim 1, wherein, the generation process of the server authorization code of the authorized account comprises: reading a plurality of hardware serial numbers of a server; encrypting each hardware serial number of the server and splicing the encryption results to obtain a server hardware base code of the authorized account; reading related information of the authorized account; combining the server hardware base code of the authorized account with the related information of the authorized account to generate a first to-be-encrypted string; encrypting the first to-be-encrypted string to obtain the server authorization code of the authorized account.

3. The printer authorization use method of claim 1, wherein, the generation process of the printer authorization code of the authorized account comprises: reading a hardware serial number and a network address of a printer; reading related information of an authorized account; combining the hardware serial number of the printer, the network address, and the related information of the authorized account based on a preset combination rule to obtain a second to-be-encrypted string; encrypting the second to-be-encrypted string to obtain a printer authorization code of the authorized account.

4. The printer authorization use method of claim 2, wherein, The related information of the authorized account includes at least one of a printer authorized use period, subject account information, an authorized version number, and value-added service item information.

5. The printer authorization use method of claim 1, wherein, The method further includes: if the first matching result and / or the second matching result indicates that the verification fails, rejecting the user from using the printer.

6. A printer authorization use apparatus, characterized by comprising: The device includes: an obtaining module configured to, in response to a request of a user to use a printer, obtain a to-be-verified server authorization code and a to-be-verified printer authorization code carried in the request, the to-be-verified server authorization code being an authorization code assigned to the user by a server after the user obtains authorization of a print management software of the printer, and the to-be-verified printer authorization code being an authorization code assigned to the user by the printer after the user obtains authorization of the print management software of the printer; a first matching module configured to, after decrypting the to-be-verified server authorization code, match the to-be-verified server authorization code with a server authorization code of an authorized account generated in advance to obtain a first matching result, wherein the server authorization code of the authorized account is generated by encrypting a server hardware base code of the authorized account and related information of the authorized account; a second matching module configured to, after decrypting the to-be-verified printer authorization code, match the to-be-verified printer authorization code with a printer authorization code of the authorized account generated in advance to obtain a second matching result, wherein the printer authorization code of the authorized account is generated by encrypting a hardware serial number of the printer, a network address of the printer, and the related information of the authorized account; an activating module configured to, if the first matching result and the second matching result both indicate a matching success, activate and allow the user to use the printer. The method further includes: if the first matching result and / or the second matching result indicates that the verification fails, rejecting the user from using the printer. The device includes: an obtaining module configured to, in response to a request of a user to use a printer, obtain a to-be-verified server authorization code and a to-be-verified printer authorization code carried in the request, the to-be-verified server authorization code being an authorization code assigned to the user by a server after the user obtains authorization of a print management software of the printer, and the to-be-verified printer authorization code being an authorization code assigned to the user by the printer after the user obtains authorization of the print management software of the printer; a first matching module configured to, after decrypting the to-be-verified server authorization code, match the to-be-verified server authorization code with a server authorization code of an authorized account generated in advance to obtain a first matching result, wherein the server authorization code of the authorized account is generated by encrypting a server hardware base code of the authorized account and related information of the authorized account; a second matching module configured to, after decrypting the to-be-verified printer authorization code, match the to-be-verified printer authorization code with a printer authorization code of the authorized account generated in advance to obtain a second matching result, wherein the printer authorization code of the authorized account is generated by encrypting a hardware serial number of the printer, a network address of the printer, and the related information of the authorized account; an activating module configured to, if the first matching result and the second matching result both indicate a matching success, activate and allow the user to use the printer. The method further includes: if the first matching result and / or the second matching result indicates that the verification fails, rejecting the user from using the printer. The device includes: an obtaining module configured to, in response to a request of a user to use a printer, obtain a to-be-verified server authorization code and a to-be-verified printer authorization code carried in the request, the to-be-verified server authorization code being an authorization code assigned to the user by a server after the user obtains authorization of a print management software of the printer, and the to-be-verified printer authorization code being an authorization code assigned to the user by the printer after the user obtains authorization of the print management software of the printer; a first matching module configured to, after decrypting the to-be-verified server authorization code, match the to-be-verified server authorization code with a server authorization code of an authorized account generated in advance to obtain a first matching result, wherein the server authorization code of the authorized account is generated by encrypting a server hardware base code of the authorized account and related information of the authorized account; a second matching module configured to, after decrypting the to-be-verified printer authorization code, match the to-be-verified printer authorization code with a printer authorization code of the authorized account generated in advance to obtain a second matching result, wherein the printer authorization code of the authorized account is generated by encrypting a hardware serial number of the printer, a network address of the printer, and the related information of the authorized account; an activating module configured to, if the first matching result and the second matching result both indicate a matching success, activate and allow the user to use the printer. If the matching is successful, the second matching result indicates that the matching is successful.

7. An electronic device, comprising: The device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used for storing a computer program; The processor is used for executing the program stored in the memory, and realizes the printer authorization use method in any one of claims 1 to 5.

8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the printer authorization use method in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Intelligent internet-of-things platform system, working method thereof and computer readable storage medium

    CN113535102A

  • Network terminal authorization protocol

    CN1360690A