A printing device and a method and system for preventing counterfeiting of a consumable encryption and decryption algorithm
By verifying the selection and matching records of encryption and decryption algorithms, the problem of ineffective anti-counterfeiting identification of printing equipment and consumables in existing technologies has been solved, achieving efficient anti-counterfeiting identification, reducing costs and improving compatibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2026-03-24
AI Technical Summary
Existing encryption and anti-counterfeiting technologies for printing equipment and consumables are ineffective in preventing counterfeiting once the identification information is leaked. This results in poor compatibility between counterfeit consumables and original equipment, affecting user experience and potentially increasing production and operating costs.
In the process of encryption and anti-counterfeiting identification, the selection and matching records of encryption and decryption algorithms are verified. Encrypted information is generated through an encryption selection program, ciphertext is formed using encryption algorithms, and it is sent wirelessly to the decryption agency for decryption verification, ensuring the matching of encryption and decryption algorithms and the legality of identity recognition information.
It increases the difficulty of anti-counterfeiting identification of printing equipment and consumables, reduces production and operating costs, and does not require hardware structure adjustments, thus improving the effectiveness and efficiency of anti-counterfeiting identification.
Smart Images

Figure CN119922273B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of printing, and more particularly relates to a printing device and a counterfeit prevention method and system for encryption and decryption algorithms of consumables. BACKGROUND
[0002] Portable intelligent printing devices represented by label printers and barcode printers are increasingly popular and widespread. The existing business model in the industry is based on setting portable printing devices as flow-type products, and setting consumables (such as label paper and carbon tape) as profit-type products, that is, manufacturers in the industry mainly rely on the production and sales of consumables to obtain necessary profits. Therefore, there are a large number of unscrupulous manufacturers in the market who counterfeit and forge genuine consumables to obtain unfair competition profits, which poses a serious challenge to the industry competition order. The counterfeit and forged consumables are difficult to form a good compatibility effect with the original genuine intelligent printing device, which easily causes the intelligent printing device to be damaged in advance and seriously affects the user experience. Therefore, there is an urgent need for encryption and counterfeit identification of portable intelligent printing devices and consumables in the industry.
[0003] In the existing encryption and counterfeit identification technology, the identification information and verification code of the consumables are written into the RFID chip of the consumables during the production process of the consumables. In the process of counterfeit identification, the identification information and the verification code are read, and the identification information is calculated by using a decryption algorithm, and the calculation result is checked with the verification code in the RFID chip of the consumables. If the check is consistent, it is confirmed that the consumables are original and genuine; if the check is inconsistent, it is confirmed that the consumables are not original and genuine.
[0004] Although the existing technology can achieve partial counterfeit identification effect to some extent, in the case that the identification information of the consumables is leaked, that is, in the case that unscrupulous manufacturers illegally obtain the identification information of the genuine consumables, the existing encryption and counterfeit identification scheme is completely empty and cannot play its due role. In the face of the above situation, domestic genuine manufacturers may adopt various methods such as placing IC chips on the hardware side, embedding multi-layer software algorithms, and verifying by cloud servers to cope with it, but the above methods may lead to high production and operation costs of printing devices or consumables in some cases. So far, no manufacturer in the industry has designed a counterfeit identification scheme from the perspective of encryption and decryption algorithms themselves, that is, further selecting and matching encryption and decryption algorithms as the main features of counterfeit identification based on the existing technology. SUMMARY
[0005] In view of the above defects or improvement needs of the prior art, the present application provides a printing device and a counterfeit prevention method and system for encryption and decryption algorithms of consumables, which verifies not only the identification information but also the selection and matching records of encryption and decryption algorithms, making it difficult to crack.
[0006] To achieve the above-mentioned purpose, according to one aspect of the present application, a counterfeit prevention method for encryption and decryption algorithms of a printing device and consumables is provided, comprising the steps of:
[0007] In step S101, the encryption mechanism reads the to-be-verified information, which includes identity recognition information and an encryption selection program activation code, activates an encryption selection program using the encryption selection program activation code, and inputs the to-be-verified information into the encryption selection program.
[0008] In step S102, the encryption selection program receives the to-be-verified information and generates encryption selection information i, which is used to select an encryption algorithm from a group of encryption algorithms, the group of encryption algorithms including N encryption algorithms.
[0009] In step S103, the to-be-verified information is encrypted using the selected encryption algorithm to form ciphertext, and the ciphertext is sent to the decryption mechanism in a wireless manner.
[0010] In step S104, after receiving the ciphertext, the decryption mechanism traverses decryption algorithms in a group of decryption algorithms, each decryption algorithm in the group of decryption algorithms being capable of decrypting the result of encryption by two encryption algorithms, records the number of decryption algorithms capable of successfully decrypting the ciphertext, and if the number of decryption algorithms is not equal to 2, the verification fails, and if the number of decryption algorithms is equal to 2, step S105 is performed.
[0011] In step S105, the decryption selection information j and k corresponding to the decryption algorithms capable of successfully decrypting the ciphertext are read, and if the following condition is met: if i < N, j = i, and k = i + 1, if i = N, j = i, and k = 1, step S106 is performed, otherwise, the verification fails.
[0012] In step S106, the legality of the identity recognition information restored from the ciphertext is verified, and if the identity recognition information is not legal, the verification fails, and if the identity recognition information is legal, the verification succeeds.
[0013] Further, the group of decryption algorithms includes N decryption algorithms.
[0014] Further, the group of encryption algorithms is stored in the encryption mechanism, and the group of decryption algorithms is stored in the decryption mechanism.
[0015] Further, the encryption selection program activation code is generated by a printing device controller.
[0016] Further, the encryption mechanism is a printing device controller or a cloud server.
[0017] Further, the decryption mechanism is a cloud server.
[0018] Further, the identity recognition information is printing device identification information or consumable identity recognition information.
[0019] Further, the printing device identification information includes a printing device-specific serial number, a specification model, a production date, and verification code information.
[0020] The consumable identification information includes a consumable-specific serial number, a specification model, a production date, and verification code information.
[0021] Further, the encryption mechanism verifies the legality of the to-be-verified information before inputting the to-be-verified information into the encryption selection program; if the to-be-verified information is not legal, the verification fails; if the to-be-verified information is legal, the step of inputting the to-be-verified information into the encryption selection program is executed.
[0022] The decryption mechanism verifies the legality of the ciphertext before traversing the decryption algorithms in the decryption algorithm group; if the ciphertext is not legal, the verification fails; if the ciphertext is legal, the step of traversing the decryption algorithms in the decryption algorithm group is executed.
[0023] According to another aspect of the present application, a printing device and consumable encryption and decryption algorithm anti-counterfeiting system is provided, which includes an encryption mechanism and a decryption mechanism, and is used to implement the following steps:
[0024] In step S101, the encryption mechanism reads to-be-verified information, the to-be-verified information including identification information and an encryption selection program activation code, activates an encryption selection program by using the encryption selection program activation code, and inputs the to-be-verified information into the encryption selection program.
[0025] In step S102, the encryption selection program receives the to-be-verified information, generates encryption selection information i, and uses the encryption selection information i to select an encryption algorithm from an encryption algorithm group, the encryption algorithm group including N encryption algorithms.
[0026] In step S103, the to-be-verified information is encrypted by using the selected encryption algorithm to form a ciphertext, and the ciphertext is sent to the decryption mechanism by using a wireless mode.
[0027] In step S104, after receiving the ciphertext, the decryption mechanism traverses decryption algorithms in a decryption algorithm group, each decryption algorithm in the decryption algorithm group being able to decrypt the result of encryption by two encryption algorithms, records the number of decryption algorithms that can successfully decrypt the ciphertext, and if the number of decryption algorithms is not equal to 2, the verification fails; if the number of decryption algorithms is equal to 2, step S105 is executed.
[0028] In step S105, the decryption selection information j and k corresponding to the decryption algorithms that can successfully decrypt the ciphertext are read, and if the following condition is met: if i
[0029] S106, verifying the legality of the identity information restored from the ciphertext, if not legal, the verification fails, if legal, the verification succeeds.
[0030] Overall, the above technical solutions conceived by the present application have beneficial effects compared with the prior art: in the anti-counterfeiting identification verification of the printing device or consumables, in addition to the verification and comparison of the identification information, the printing device and the cloud server should also continue to verify the selection and matching record of the encryption and decryption algorithm, so as to maximize the difficulty of cracking in the anti-counterfeiting identification verification of the printing device or consumables, and the present application can not have to redesign and adjust the hardware structure or IC chip of the printing device, improve the product development efficiency and reduce the production and operation cost. BRIEF DESCRIPTION OF DRAWINGS
[0031] Figure 1 is a flow chart of the anti-counterfeiting method of the encryption and decryption algorithm of the printing device and consumables of the embodiment of the present application;
[0032] Figure 2 is a schematic diagram of the anti-counterfeiting system of the encryption and decryption algorithm of the printing device and consumables of the embodiment of the present application. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application. In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as there is no conflict.
[0034] In the embodiments of the present application, the terms "comprise" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, device, product or equipment comprising a series of steps or modules does not have to be limited to those steps or modules clearly listed, but can include other steps or modules that are not clearly listed or inherent to these processes, methods, products or equipment.
[0035] The naming or numbering of the steps appearing in the embodiments of the present application does not mean that the steps in the method flow must be executed in the time / logical order indicated by the naming or numbering, and the flow steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0036] Reference to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily all referring to a common embodiment, or an embodiment that is independent of other embodiments. One of ordinary skill in the art will recognize that the embodiments described herein can be combined with other embodiments in various ways.
[0037] The application provides a printing device and a counterfeit-proof method and system of consumable encryption and decryption algorithm, which are described below.
[0038] As shown in the figure, the printing device and the counterfeit-proof method of consumable encryption and decryption algorithm of the embodiment of the application include the following steps: Figure 1
[0039] Step S101, the encryption mechanism reads the to-be-verified information, the to-be-verified information includes identity identification information and encryption selection program activation code, the encryption selection program is activated by using the encryption selection program activation code, and the to-be-verified information is input into the encryption selection program.
[0040] The identity identification information can be the identity identification information of the to-be-verified printing device or the to-be-verified consumable.
[0041] The encryption selection program activation code is information for activating the encryption selection program, which can be a preset character or a character randomly generated by using a random code generation algorithm.
[0042] After the encryption selection program is activated by using the encryption selection program activation code, the to-be-verified information is input into the activated encryption selection program.
[0043] Step S102, the encryption selection program receives the to-be-verified information, generates encryption selection information i, and the encryption selection information i is used for selecting an encryption algorithm from an encryption algorithm group, and the encryption algorithm group includes N encryption algorithms.
[0044] The encryption selection program receives the to-be-verified information, generates encryption selection information i according to the to-be-verified information. The to-be-verified information is denoted as x, a function for generating the encryption selection information according to the to-be-verified information is denoted as β, and there is β(x) = i.
[0045] The N encryption algorithms in the encryption algorithm group are respectively denoted as f1, f2, f3, …, fN. N The selected encryption algorithm is denoted as fi. i 1≤i≤N.
[0046] Step S103, the to-be-verified information is encrypted by using the selected encryption algorithm to form ciphertext, and the ciphertext is sent to the decryption mechanism in a wireless manner.
[0047] The to-be-verified information is encrypted by using the encryption algorithm selected in the previous step to form ciphertext, and the ciphertext can be denoted as f i (x).
[0048] The sending to the decryption mechanism in a wireless manner can be that the ciphertext is sent to the decryption mechanism by using electromagnetic waves of a specific frequency.
[0049] In step S104, after the decryption mechanism receives the ciphertext, the decryption algorithms in the decryption algorithm group are traversed, each decryption algorithm in the decryption algorithm group can decrypt the result encrypted by two encryption algorithms, the number of decryption algorithms that can successfully decrypt the ciphertext is recorded, if the number of decryption algorithms is not equal to 2, the verification fails, if the number of decryption algorithms is equal to 2, step S105 is performed.
[0050] The algorithms in the decryption algorithm group are set in advance to satisfy that each decryption algorithm in the decryption algorithm group can decrypt the result encrypted by two encryption algorithms.
[0051] Taking N=3 as an example, the N encryption algorithms in the encryption algorithm group are denoted as f1, f2 and f3 respectively, and the three decryption algorithms in the decryption algorithm group are denoted as F1, F2 and F3 respectively. The result encrypted by f1 can be decrypted by F1 and F2, the result encrypted by f2 can be decrypted by F2 and F3, and the result encrypted by f3 can be decrypted by F3 and F1.
[0052] After the decryption mechanism receives the ciphertext, the decryption algorithms in the decryption algorithm group are traversed, and first, the number of decryption algorithms that can successfully decrypt the ciphertext is recorded, if the number of decryption algorithms is not equal to 2, the verification fails, if the number of decryption algorithms is equal to 2, step S105 is performed.
[0053] In step S105, the decryption selection information j and k corresponding to the decryption algorithm that can successfully decrypt the ciphertext are read, if the following condition is satisfied: if i
[0054] In the example of N=3, assuming that the selected encryption algorithm is f2, assuming that the decryption algorithm corresponding to the decryption selection information j and k respectively being 2 and 3 which can successfully decrypt the ciphertext, it is indicated that the corresponding decryption algorithm is F2, F3, satisfying the matching relationship between the encryption algorithm and the decryption algorithm, and the verification is successful. Assuming that the selected encryption algorithm is f3, assuming that the decryption algorithm corresponding to the decryption selection information j and k respectively being 3 and 1 which can successfully decrypt the ciphertext, it is indicated that the corresponding decryption algorithm is F3, F1, satisfying the matching relationship between the encryption algorithm and the decryption algorithm, and the verification is successful. Assuming that the selected encryption algorithm is f2, assuming that the decryption algorithm corresponding to the decryption selection information j and k respectively being 1 and 3 which can successfully decrypt the ciphertext, it is indicated that the corresponding decryption algorithm is F1, F3, not satisfying the matching relationship between the encryption algorithm and the decryption algorithm, and the verification fails.
[0055] S106, verifying the legality of the identity recognition information restored from the ciphertext, if not legal, the verification fails, if legal, the verification is successful.
[0056] After verifying the selection and matching record of the encryption and decryption algorithm, the legality of the identity recognition information restored from the ciphertext needs to be further verified. The verification method here can use any existing verification method.
[0057] Further, the decryption algorithm group includes N decryption algorithms, that is, the same as the encryption algorithm group.
[0058] Further, the encryption algorithm group is stored in the encryption mechanism, and the encryption mechanism can directly call the encryption algorithm in the encryption algorithm group. The decryption algorithm group is stored in the decryption mechanism, and the decryption mechanism can directly call the decryption algorithm in the decryption algorithm group.
[0059] Further, the encryption selection program activation code is generated by a printing device controller. The printing device controller can generate the encryption selection program activation code according to a preset random code generation algorithm.
[0060] Further, the encryption mechanism is a printing device controller or a cloud server. If the encryption mechanism is a printing device controller, the printing device controller directly processes after obtaining the to-be-verified information. If the encryption mechanism is a cloud server, the printing device controller sends the to-be-verified information to the cloud server for processing after obtaining the to-be-verified information.
[0061] Further, the decryption mechanism is a cloud server.
[0062] Further, the identity recognition information is printing device identification information or consumable identity recognition information. That is, the above anti-counterfeiting method can be used for anti-counterfeiting verification of consumables, and also can be used for anti-counterfeiting verification of printing devices.
[0063] Furthermore, the printing device identification information includes the printing device's unique serial number, specifications, production date, and verification code information.
[0064] The consumable identification information includes the consumable's unique serial number, specifications, production date, and verification code.
[0065] Furthermore, before inputting the information to be verified into the encryption selection program, the encryption mechanism first verifies the legality of the information to be verified. For example, it verifies the legality of the information to be verified by verifying whether the information to be verified meets the preset format or whether it has been tampered with. If it is not legal, the verification fails. If it is legal, the step of inputting the information to be verified into the encryption selection program is then executed.
[0066] Before traversing the decryption algorithms in the decryption algorithm group, the decryption mechanism first verifies the legality of the ciphertext. For example, it verifies the legality of the ciphertext by verifying whether the ciphertext meets the preset format and whether it has been tampered with. If it is not legal, the verification fails. If it is legal, the step of traversing the decryption algorithms in the decryption algorithm group is then executed.
[0067] like Figure 2 As shown, according to another aspect of the present invention, an anti-counterfeiting system for encryption and decryption algorithms of printing equipment and consumables is provided, including an encryption mechanism and a decryption mechanism, the system being used to implement the following steps:
[0068] Step S101: The encryption mechanism reads the information to be verified, which includes identity information and an encryption selection program activation code. The encryption selection program is activated using the encryption selection program activation code, and the information to be verified is input into the encryption selection program.
[0069] Step S102: The encryption selection program receives the information to be verified and generates encryption selection information i. The encryption selection information i is used to select an encryption algorithm from the encryption algorithm group, which includes N encryption algorithms.
[0070] Step S103: Encrypt the information to be verified using the selected encryption algorithm to form ciphertext, and then transmit the ciphertext to the decryption agency wirelessly.
[0071] Step S104: After receiving the ciphertext, the decryption mechanism traverses the decryption algorithms in the decryption algorithm group. Each decryption algorithm in the decryption algorithm group can decrypt the result of two encryption algorithms. The number of decryption algorithms that can successfully decrypt the ciphertext is recorded. If the number of decryption algorithms is not equal to 2, the verification fails. If the number of decryption algorithms is equal to 2, step S105 is executed.
[0072] Step S105, read the decryption algorithm corresponding to the decryption of the ciphertext can be successfully decrypted to select information j and k, if meet: if i < N, j = i, k = i + 1, if i = N, j = i, k = 1, then execute step S106, if not meet: if i < N, j = i, k = i + 1, if i = N, j = i, k = 1, then verify failure;
[0073] S106, verify the legality of the identity information restored from the ciphertext, if not legal, then verify failure, if legal, then verify success.
[0074] The working principle and technical effects of the system are the same as the above method, which will not be repeated here.
[0075] Those skilled in the art will readily understand that the above only describes the preferred embodiments of the present application, and is not intended to limit the present application, any modification, equivalent replacement and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for preventing counterfeiting of printing equipment and consumables using encryption and decryption algorithms, characterized in that, Including the following steps: S101, the encryption mechanism reads the information to be verified, which includes identity information and encryption selection program activation code, activates the encryption selection program using the encryption selection program activation code, and inputs the information to be verified into the encryption selection program; S102, the encryption selection program receives the information to be verified and generates encryption selection information i, which is used to select an encryption algorithm from a group of encryption algorithms, including N encryption algorithms. S103, the information to be verified is encrypted using the selected encryption algorithm to form ciphertext, and the ciphertext is wirelessly transmitted to the decryption agency; S104. After receiving the ciphertext, the decryption mechanism traverses the decryption algorithms in the decryption algorithm group. Each decryption algorithm in the decryption algorithm group can decrypt the result of the encryption by the two encryption algorithms. The number of decryption algorithms that can successfully decrypt the ciphertext is recorded. If the number of decryption algorithms is not equal to 2, the verification fails. If the number of decryption algorithms is equal to 2, step S105 is executed. S105, Read the decryption selection information j and k corresponding to the decryption algorithm that can successfully decrypt the ciphertext. If the following conditions are met: if i < N, j = i, k = i + 1; if i = N, j = i, k = 1, then execute step S106; otherwise, the verification fails. S106. Verify the legality of the identity information restored from the ciphertext. If it is not legal, the verification fails; if it is legal, the verification succeeds.
2. The anti-counterfeiting method for the printing equipment and consumable encryption / decryption algorithm as described in claim 1, characterized in that, The decryption algorithm group includes N decryption algorithms.
3. The anti-counterfeiting method for the printing equipment and consumable encryption / decryption algorithm as described in claim 1, characterized in that, The encryption algorithm set is stored in the encryption mechanism, and the decryption algorithm set is stored in the decryption mechanism.
4. The anti-counterfeiting method for the printing equipment and consumable encryption / decryption algorithm as described in claim 1, characterized in that, The encryption selection program activation code is generated by the printing device controller.
5. The anti-counterfeiting method for the encryption and decryption algorithm of the printing equipment and consumables as described in claim 1, characterized in that, The encryption mechanism is a printing device controller or a cloud server.
6. The anti-counterfeiting method for the printing equipment and consumable encryption / decryption algorithm as described in claim 1, characterized in that, The decryption mechanism is a cloud server.
7. The anti-counterfeiting method for the printing equipment and consumable encryption / decryption algorithm as described in claim 1, characterized in that, The identification information is either printing device identification information or consumable identification information.
8. The anti-counterfeiting method for the printing equipment and consumable encryption / decryption algorithm as described in claim 7, characterized in that, The printing device identification information includes the printing device's unique serial number, specifications, production date, and verification code. The consumable identification information includes the consumable's unique serial number, specifications, production date, and verification code.
9. The anti-counterfeiting method for the printing equipment and consumable encryption / decryption algorithm as described in claim 1, characterized in that, Before inputting the information to be verified into the encryption selection program, the encryption mechanism first verifies the legality of the information to be verified. If it is not legal, the verification fails. If it is legal, the step of inputting the information to be verified into the encryption selection program is then executed. Before traversing the decryption algorithms in the decryption algorithm group, the decryption mechanism first verifies the validity of the ciphertext. If it is invalid, the verification fails; if it is valid, the step of traversing the decryption algorithms in the decryption algorithm group is then executed.
10. An anti-counterfeiting system for encryption and decryption algorithms of printing equipment and consumables, characterized in that, The system includes an encryption mechanism and a decryption mechanism, and is used to implement the following steps: S101, the encryption mechanism reads the information to be verified, which includes identity information and encryption selection program activation code, activates the encryption selection program using the encryption selection program activation code, and inputs the information to be verified into the encryption selection program; S102, the encryption selection program receives the information to be verified and generates encryption selection information i, which is used to select an encryption algorithm from a group of encryption algorithms, including N encryption algorithms. S103, the information to be verified is encrypted using the selected encryption algorithm to form ciphertext, and the ciphertext is wirelessly transmitted to the decryption agency; S104. After receiving the ciphertext, the decryption mechanism traverses the decryption algorithms in the decryption algorithm group. Each decryption algorithm in the decryption algorithm group can decrypt the result of the encryption by the two encryption algorithms. The number of decryption algorithms that can successfully decrypt the ciphertext is recorded. If the number of decryption algorithms is not equal to 2, the verification fails. If the number of decryption algorithms is equal to 2, step S105 is executed. S105, Read the decryption selection information j and k corresponding to the decryption algorithm that can successfully decrypt the ciphertext. If the following conditions are met: if i < N, j = i, k = i + 1; if i = N, j = i, k = 1, then execute step S106; otherwise, the verification fails. S106. Verify the legality of the identity information restored from the ciphertext. If it is not legal, the verification fails; if it is legal, the verification succeeds.
Citation Information
Patent Citations
Method for quickly verifying correctness of secure storage chip cryptographic algorithm
CN107465503A
Thermal transfer printer, upper computer, consumable encryption system and consumable encryption method
CN111125740A