Printer authorized use method and device, equipment and storage medium
By decrypting and matching the server and printer authorization codes to be verified during the printer authorization use, the problem of users continuing to use and authorization after the authorization expires is solved, and the legality and security of authorization use are achieved.
Patent Information
- Application Number
- CN202411294581.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-09-14
AI Technical Summary
The prior art is difficult to avoid the situation where users continue to use the printer after the expired authorization, authorization will be repeatedly installed or used, or authorizations will be mixed by different account entities.
By responding to the user's request to use the printer, obtain the server authorization code and the printer authorization code to be verified, and then decrypted to match the authorization code of the pre-generated authorization account. If the match is successful, the user will be activated and allowed to use the printer.
It effectively avoids the situation where users continue to use after the authorization expires, authorization reuses or authorizations are mixed with authorizations of different account entities, and ensures the legality and security of authorization.
Smart Images

Figure CN119415049A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of printer control technology, and in particular to a printer authorization method, device, equipment and storage medium. Background Art
[0002] Printing management software, also known as print management software or document output management software, is a tool for comprehensive management of printing work in the office. It effectively improves work efficiency, reduces equipment loss, and controls printing costs by centrally managing daily printing tasks such as printing, copying, and scanning.
[0003] At present, the lessor of printer equipment can grant the lessee a corresponding usage period or permission to use the printer's printing management software or a function in the printing management software based on actual business needs. However, in actual applications, it may happen that after the printing management software or function authorization expires, the lessee user continues to use it, authorizes repeated installation and use, or uses different account entities for mixed authorization.
[0004] Therefore, how to avoid the situation where users continue to use the printer after the authorization expires, the authorization is repeatedly installed and used, or different account entities authorize the mixed use of the printer has become a technical problem that needs to be solved urgently by technical personnel in this field. Summary of the invention
[0005] In view of the above, the present application provides a printer authorization method, device, equipment and storage medium, which aims to solve the above technical problems.
[0006] In a first aspect, the present application provides a method for authorizing the use of a printer, the method comprising:
[0007] In response to a user's request to use a printer, obtain the server authorization code to be verified and the printer authorization code to be verified carried in the request;
[0008] After decrypting the server authorization code to be verified, the decrypted code is matched with the server authorization code of the pre-generated authorized account to obtain a first matching result;
[0009] After decrypting the printer authorization code to be verified, the decrypted code is matched with the printer authorization code of the pre-generated authorization account to obtain a second matching result;
[0010] If both the first matching result and the second matching result indicate successful matching, the printer is activated and allowed to be used by the user.
[0011] In a second aspect, the present application provides a device for authorizing the use of a printer, the device comprising:
[0012] Acquisition module: used to respond to a user's request to use a printer and acquire the server authorization code to be verified and the printer authorization code to be verified carried in the request;
[0013] A 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 a first matching result;
[0014] A second matching module: used for decrypting the printer authorization code to be verified and matching it with the printer authorization code of the pre-generated authorization account to obtain a second matching result;
[0015] Activation module: used for activating and allowing the user to use the printer if both the first matching result and the second matching result indicate a successful match.
[0016] In a third aspect, the present 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 via the communication bus;
[0017] Memory, used to store computer programs;
[0018] The processor is used to implement the printer authorization method described in any embodiment of the first aspect when executing the program stored in the memory.
[0019] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for authorizing the use of a printer as described in any one of the embodiments of the first aspect is implemented.
[0020] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0021] This application responds to the user's request to use the printer, obtains the server authorization code to be verified and the printer authorization code to be verified carried in the request, decrypts the server authorization code to be verified, and matches it with the server authorization code of the pre-generated authorized account to obtain a first matching result, decrypts the printer authorization code to be verified, and matches it with the printer authorization code of the pre-generated authorized account to obtain a second matching result, if both the first matching result and the second matching result indicate a successful match, the printer is activated and allowed to be used by the user. Since the printer's document printing management software or an authorized function in the document printing management software may have a certain period and usage time, when the user needs to use the printer's document printing management software or use an authorized function in the document printing management software, by verifying the two authorization codes, the server authorization code to be verified and the printer authorization code to be verified, it can be avoided that the user continues to use the printer after the authorization expires, the authorization is repeatedly installed and used, or different account entities authorize the mixed use of the printer. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0024] Figure 1 This is a flow chart of an embodiment of the method for authorizing the use of a printer in this application;
[0025] Figure 2 This is a module diagram of an embodiment of a device for authorizing the use of a printer in the present application;
[0026] Figure 3 A schematic diagram of an electronic device embodiment of the present application;
[0027] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0029] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0030] This application provides a method for authorizing the use of a printer. Figure 1 FIG. 1 is a flow chart of an embodiment of the method for authorized use of a printer of the present application. The method may be executed by an electronic device, and the electronic device may be implemented by software and / or hardware. The method for authorized use of a printer includes:
[0031] Step S10: responding to the user's request to use the printer, obtaining the server authorization code to be verified and the printer authorization code to be verified carried in the request;
[0032] Step S20: After decrypting the server authorization code to be verified, the decrypted code is matched with the server authorization code of the pre-generated authorized account to obtain a first matching result;
[0033] Step S30: After decrypting the printer authorization code to be verified, the decrypted code is matched with the printer authorization code of the pre-generated authorization 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, activating and allowing the user to use the printer.
[0035] The printer has multiple functions such as high-speed printing, batch scanning, and print job encryption, and also has multiple software such as document management software, secure printing software, and scanning software. Users can configure corresponding usage periods and permissions for these functions and software, that is, they need to obtain authorization to use these functions or use these software. It can be understood that in this embodiment, the scenario in which the user uses the printer can be the user using the authorized function of the printer, the user using the authorized software of the printer, or the user using the ordinary function of the printer, and no specific limitation is made here. Since in the actual use of the printer, it is possible that the user continues to use the software or function after the authorization expires, the authorization is repeatedly installed and used, or the authorization of different account subjects is mixed, so when the user uses the printer, its authorization status needs to be verified.
[0036] Taking the example of a user using the printer's document printing management software or using an authorized function in the document printing management software, the scheme of this embodiment is explained. The user can input the server authorization code to be verified and the printer authorization code to be verified through the interactive interface of the terminal to initiate a request to use the printer. The terminal responds to the request and obtains the server authorization code to be verified 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 activating the server and the printer, the user can use the printer's document printing management software or use an authorized function in the document printing management software.
[0037] The server authorization code to be verified refers to the authorization code assigned to the user by the server after the user obtains the printer's document management software authorization. The server authorization code is generated by the server's hardware serial number and the relevant information of the authorized account. The printer authorization code to be verified refers to the authorization code assigned to the user by the printer after the user obtains the printer's document management software authorization. The printer authorization code is generated by the printer's hardware serial number, network address and relevant information of the authorized account.
[0038] After decrypting the server authorization code to be verified, the decrypted result includes the server basic code to be verified and the relevant information of the user. The decrypted result is matched with the server authorization code of the pre-generated authorized account to obtain a matching result (recorded as the first matching result). The server authorization code of the authorized account is generated by encrypting the server hardware basic code of the authorized account and the relevant information of the authorized account. If the first matching result indicates a successful match, it means that the server authorization code to be verified has passed the verification, and the server activation is successful at this time. If the first matching result indicates a failed match, it means that the server authorization code to be verified has not passed the verification, and the server activation fails at this time, that is, the user is not allowed to use the printer's printing management software or a certain authorized function in the printing management software.
[0039] After decrypting the printer authorization code to be verified, the decrypted result includes the printer's hardware serial number, network address, and related information of the authorized account. The decrypted result is matched with the pre-generated printer authorization code of the authorized account to obtain a matching result (recorded as the second matching result). The printer authorization code of the authorized account is generated by encrypting the printer's hardware serial number, the printer's network address, and related information of the authorized account. If the second matching result indicates a successful match, it means that the printer authorization code to be verified has passed the verification, and the printer is successfully activated. If the second matching result indicates a failed match, it means that the printer authorization code to be verified has not passed the verification, and the printer activation fails, that is, the user is not allowed to use the printer's document printing management software or a certain authorized function in the document printing management software.
[0040] If both the first matching result and the second matching result indicate a successful match, the server and the printer are activated successfully, and the user is allowed to use the printer's print management software or an authorized function in the print management software. If the first matching result and / or the second matching result indicate that the verification failed, the server and / or the printer fail to activate, and the user is denied to use the printer's print management software or an authorized function in the print management software.
[0041] Since authorization may have a certain period and usage time, when a user needs to use the printer's document management software or use an authorized function in the document management software, by verifying the two authorization codes, the server authorization code to be verified and the printer authorization code to be verified, it can avoid the situation where the user continues to use the authorization after it expires, the authorization is installed and used repeatedly, or the authorization of different account entities is mixed.
[0042] In one embodiment, the process of generating a server authorization code for an authorized account includes:
[0043] Read multiple hardware serial numbers of the server;
[0044] After encrypting each hardware serial number of the server, the encryption results are concatenated to obtain the server hardware basic code of the authorized account;
[0045] Read the relevant information of the authorized account;
[0046] Combining the server hardware basic code of the authorized account with the relevant information of the authorized account to generate a first character string to be encrypted;
[0047] The first character string to be encrypted is encrypted to obtain a server authorization code of the authorized account.
[0048] Read the server's motherboard serial number, CPU serial number, C drive hard disk serial number and other serial numbers, use the MD5 algorithm to encrypt each hardware serial number of the server, obtain the encryption result of each hardware serial number, concatenate the encryption results and convert them into an all-uppercase string as the server hardware base code of the authorized account. Read the relevant information of the authorized account, where the relevant information of the authorized account includes at least one of the authorized use period of the printer, the subject account information, the authorized version number, and the value-added service item information. Combine the server hardware base code of the authorized account with the relevant information of the authorized account to generate a standard JSON string (recorded as the first string to be encrypted), encrypt the first string to be encrypted using the AES algorithm, and obtain the server authorization code of the authorized account.
[0049] Furthermore, the above 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] Decrypting the authorization code of the server to be verified to obtain the decrypted basic code of the server to be verified and relevant information of the user;
[0051] Compare the server basic code to be verified with the server hardware basic code of the authorized account to obtain a first comparison result;
[0052] Comparing the relevant information of the user with the relevant information of the authorized account to obtain a second comparison result;
[0053] If the first comparison result and the second comparison result both indicate that the comparison is consistent, then the first matching result indicates that the match is successful.
[0054] The AES algorithm is used to decrypt the authorization code of the server to be verified, and the decrypted server basic code to be verified and the user's relevant information (including the authorized use period of the printer, the main account information, the authorized version number, and the value-added service item information) are obtained. The decrypted server basic code to be verified is compared with the server hardware basic code of the authorized account to obtain a comparison result (recorded as the first comparison result), wherein the server hardware basic code of the authorized account can also be obtained by re-encrypting multiple hardware serial numbers of the server and splicing them. The relevant information of the user is compared with the relevant information of the authorized account to obtain a comparison result (recorded as the second comparison result). If the first comparison result and the second comparison result both indicate that the comparison is consistent, the first matching result indicates a successful match. After the match is successful, the authorization related information is written, so that the server is activated successfully. If there is an inconsistency between the two comparison results, the first matching result indicates a matching failure. For example, if the relevant information of the user is inconsistent with the relevant information of the authorized account (such as inconsistent authorization period, inconsistent subject account information, etc.), the server cannot be activated at this time, thereby avoiding the situation where the user continues to use the printer after the authorization expires, the authorization is repeatedly installed and used, or different account subjects are authorized to mix and match the printer.
[0055] In one embodiment, the process of generating the printer authorization code of 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] Combining the hardware serial number of the printer, the network address and the relevant information of the authorized account based on a preset combination rule to obtain a second character string to be encrypted;
[0059] The second character string to be encrypted is encrypted to obtain a printer authorization code of the authorized account.
[0060] Obtain the printer's motherboard serial number, brand model, MAC address, IP address and other information to generate a labeled JSON string, read the relevant information of the authorized account (including the printer's authorized use period, subject account information, authorized version number, value-added service item information), and combine and splice it into a string to be encrypted (recorded as the second string to be encrypted) according to the following rules:
[0061] [Motherboard serial number @=@Brand model @=@MAC address @=@IP address @=@Authorized use period @=@Subject account information]. It should be noted that the preset combination rule can also be spliced using other characters, and the splicing order can also be changed. The splicing characters and order are not specifically limited here. The second string to be encrypted is encrypted using the AES algorithm to obtain the printer authorization code of the authorized account.
[0062] Furthermore, the above step of "decrypting the authorization code of the printer 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] Decrypting the authorization code of the printer to be verified to obtain the decrypted hardware serial number to be verified, the network address to be verified and relevant information of the user;
[0064] Matching the hardware serial number to be verified with the hardware serial number of the printer;
[0065] Matching the network address to be verified with the network address of the printer;
[0066] Matching the relevant information of the user with the relevant information of the authorized account;
[0067] If both are matched successfully, the second matching result indicates a successful match.
[0068] The AES algorithm is used to decrypt the authorization code of the printer to be verified, and the decrypted hardware serial number to be verified, the network address to be verified and the relevant information of the user are obtained. The decryption result is a plain text regular string. The field information is intercepted by "@=@" to obtain the hardware serial number to be verified, the network address to be verified and the relevant information of the user. The mainboard serial number, brand model, MAC address, IP address, authorized usage period of the user, and the subject 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 hardware serial number of the printer, or the network address to be verified fails to match the network address of the printer, or the relevant information of the user fails to match the relevant information of the authorized account, then the second matching result indicates a matching failure. For example, if the mainboard serial number of the printer fails to match, or the IP address fails to match, or the authorized usage period fails to match, then the printer cannot be activated at this time. This can avoid the situation where the user continues to use the printer after the authorization expires, the authorization is repeatedly installed and used, or different account subjects authorize the mixed use of the printer.
[0070] Reference Figure 2 , which is a schematic diagram of the functional modules of the printer authorization device 100 of the present application.
[0071] The printer authorization use device 100 described in the present application can be installed in an electronic device. According to the functions to be implemented, the printer authorization use 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 the present application may also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, and is stored in the memory of the electronic device.
[0072] In this embodiment, the functions of each module / unit are as follows:
[0073] The acquisition module 110 is used to respond to the user's request to use the printer and acquire the server authorization code to be verified and the printer authorization code to be verified carried in the request;
[0074] The first matching module 120 is 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 authorization account to obtain a second matching result;
[0076] The activation module 140 is configured to activate and allow the user to use the printer if both the first matching result and the second matching result indicate a successful match.
[0077] In one embodiment, the process of generating the server authorization code of the authorized account includes:
[0078] Read multiple hardware serial numbers of the server;
[0079] After encrypting each hardware serial number of the server, the encryption results are concatenated to obtain the server hardware basic code of the authorized account;
[0080] Read the relevant information of the authorized account;
[0081] Combining the server hardware basic code of the authorized account with the relevant information of the authorized account to generate a first character string to be encrypted;
[0082] The first character string to be encrypted is encrypted to obtain a server authorization code of the authorized account.
[0083] In one embodiment, the process of generating the printer authorization code of 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] Combining the hardware serial number of the printer, the network address and the relevant information of the authorized account based on a preset combination rule to obtain a second character string to be encrypted;
[0087] The second character string to be encrypted is encrypted to obtain a printer authorization code of the authorized account.
[0088] In one embodiment, after decrypting the server authorization code to be verified, matching it with the pre-generated server authorization code of the authorized account to obtain a first matching result includes:
[0089] Decrypting the authorization code of the server to be verified to obtain the decrypted basic code of the server to be verified and relevant information of the user;
[0090] Compare the server basic code to be verified with the server hardware basic code of the authorized account to obtain a first comparison result;
[0091] Comparing the relevant information of the user with the relevant information of the authorized account to obtain a second comparison result;
[0092] If the first comparison result and the second comparison result both indicate that the comparison is consistent, then the first matching result indicates that the match is successful.
[0093] In one embodiment, after decrypting the authorization code of the printer to be verified, matching it with the pre-generated authorization code of the authorized account to obtain a second matching result includes:
[0094] Decrypting the authorization code of the printer to be verified to obtain the decrypted hardware serial number to be verified, the network address to be verified and relevant information of the user;
[0095] Matching the hardware serial number to be verified with the hardware serial number of the printer;
[0096] Matching the network address to be verified with the network address of the printer;
[0097] Matching the relevant information of the user with the relevant information of the authorized account;
[0098] If both are matched successfully, the second matching result indicates a successful match.
[0099] In one embodiment, the relevant information of the authorized account includes at least one of: authorized usage period of the printer, subject account information, authorized 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 indicates that the verification fails, the user is denied access to the printer.
[0102] Reference Figure 3 , which is a schematic diagram of a preferred embodiment of the electronic device of the present 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 via the communication bus 114;
[0104] The memory 113 is used to store computer programs, for example, a printer authorization program;
[0105] The processor 111 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 111 is generally used to control the overall operation of the electronic device, such as performing control and processing related to data interaction or communication. In this embodiment, the processor 111 is used to run the program code stored in the memory 113 or process data, such as running the program code of the printer authorization program.
[0106] The communication interface 112 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and 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, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), 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, disk, optical disk, etc. In some embodiments, the memory 113 can be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device. In other embodiments, the memory 113 can also be an external storage device of the electronic device, such as a plug-in hard disk equipped with the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 113 can also include both the internal storage unit of the electronic device and its external storage device. In this embodiment, the memory 11 is generally used to store the operating system and various computer programs installed in the electronic device, such as the program code of the printer authorization program, etc. In addition, the memory 113 can also be used to temporarily store various types of data that have been output or are to be output.
[0108] Figure 3 Only an electronic device having components 111 - 114 is shown, but it is understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0109] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the printer authorization method provided by any of the above method embodiments, including:
[0110] In response to a user's request to use a printer, obtain the server authorization code to be verified and the printer authorization code to be verified carried in the request;
[0111] After decrypting the server authorization code to be verified, the decrypted code is matched with the server authorization code of the pre-generated authorized account to obtain a first matching result;
[0112] After decrypting the printer authorization code to be verified, the decrypted code is matched with the printer authorization code of the pre-generated authorization account to obtain a second matching result;
[0113] If both the first matching result and the second matching result indicate successful matching, the printer is activated and allowed to be used by the user.
[0114] For a detailed description of the above steps, please refer to the above Figure 1Description of a flowchart of an embodiment of a method for authorizing use of a printer.
[0115] In addition, the embodiment of the present application also proposes 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, and the program storage area stores a printer authorization program. When the printer authorization program is executed by a processor, the following operations are implemented:
[0116] In response to a user's request to use a printer, obtain the server authorization code to be verified and the printer authorization code to be verified carried in the request;
[0117] After decrypting the server authorization code to be verified, the decrypted code is matched with the server authorization code of the pre-generated authorized account to obtain a first matching result;
[0118] After decrypting the printer authorization code to be verified, the decrypted code is matched with the printer authorization code of the pre-generated authorization account to obtain a second matching result;
[0119] If both the first matching result and the second matching result indicate successful matching, the printer is activated and allowed to be used by the user.
[0120] The specific implementation of the computer-readable storage medium of the present application is substantially the same as the specific implementation of the above-mentioned printer authorization method, and will not be described in detail here.
[0121] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0123] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0124] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0125] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for authorizing the use of a printer, characterized in that: The method comprises: In response to a user's request to use a printer, obtain the server authorization code to be verified and the printer authorization code to be verified carried in the request; After decrypting the server authorization code to be verified, the decrypted code is matched with the server authorization code of the pre-generated authorized account to obtain a first matching result; After decrypting the printer authorization code to be verified, the decrypted code is matched with the printer authorization code of the pre-generated authorization account to obtain a second matching result; If both the first matching result and the second matching result indicate successful matching, the printer is activated and allowed to be used by the user.
2. The printer authorization method according to claim 1, characterized in that: The process of generating the server authorization code of the authorized account includes: Read multiple hardware serial numbers of the server; After encrypting each hardware serial number of the server, the encryption results are concatenated to obtain the server hardware basic code of the authorized account; Read the relevant information of the authorized account; Combining the server hardware basic code of the authorized account with the relevant information of the authorized account to generate a first character string to be encrypted; The first character string to be encrypted is encrypted to obtain a server authorization code of the authorized account.
3. The printer authorization method according to claim 1, characterized in that: The process of generating the printer authorization code of the authorized account includes: Read the printer's hardware serial number and network address; Read the relevant information of the authorized account; Combining the hardware serial number of the printer, the network address and the relevant information of the authorized account based on a preset combination rule to obtain a second character string to be encrypted; The second character string to be encrypted is encrypted to obtain a printer authorization code of the authorized account.
4. The printer authorization method according to claim 1 or 2, characterized in that: After decrypting the server authorization code to be verified, the decrypted code is matched with the server authorization code of the pre-generated authorized account to obtain a first matching result, including: Decrypting the authorization code of the server to be verified to obtain the decrypted basic code of the server to be verified and relevant information of the user; Compare the server basic code to be verified with the server hardware basic code of the authorized account to obtain a first comparison result; Comparing the relevant information of the user with the relevant information of the authorized account to obtain a second comparison result; If the first comparison result and the second comparison result both indicate that the comparison is consistent, then the first matching result indicates that the match is successful.
5. The printer authorization method according to claim 1 or 3, characterized in that: After the authorization code of the printer to be verified is decrypted, it is matched with the authorization code of the printer of the pre-generated authorization account to obtain a second matching result, including: Decrypting the authorization code of the printer to be verified to obtain the decrypted hardware serial number to be verified, the network address to be verified and relevant information of the user; Matching the hardware serial number to be verified with the hardware serial number of the printer; Matching the network address to be verified with the network address of the printer; Matching the relevant information of the user with the relevant information of the authorized account; If both are matched successfully, the second matching result indicates a successful match.
6. The printer authorization method according to claim 2, characterized in that: The relevant information of the authorized account includes at least one of: the authorized use period of the printer, the subject account information, the authorized version number, and the value-added service item information.
7. The method for authorizing the use of a printer according to claim 1, wherein: The method further comprises: If the first matching result and / or the second matching result indicates that the verification fails, the user is denied access to the printer.
8. A printer authorization device, characterized in that: The device comprises: Acquisition module: used to respond to a user's request to use a printer and acquire the server authorization code to be verified and the printer authorization code to be verified carried in the request; A 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 a first matching result; A second matching module: used for decrypting the printer authorization code to be verified and matching it with the printer authorization code of the pre-generated authorization account to obtain a second matching result; Activation module: used for activating and allowing the user to use the printer if both the first matching result and the second matching result indicate a successful match.
9. An electronic device, characterized in that: It includes 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; Memory, used to store computer programs; The processor is used to implement the printer authorization method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for authorizing the use of a printer according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Intelligent printing method and system
CN106126134A
Printing method and apparatus
CN106557285A
Method and system for realizing digital right management by printing machine
CN107315552A
Data transmission method of printer
CN109508153A
Cloud printing method, device and system
CN110275682A