Cracking type encryption anti-counterfeiting identification method and system for printing equipment and consumables

By generating random sequence numbers in the production process of printing equipment and consumables, establishing a one-to-one mapping relationship using cloud servers, and combining the keys in the prime number sequence for encryption and verification, the anti-counterfeiting identification failure problem caused by identification information leakage in the prior art is solved, and more efficient anti-counterfeiting identification of printing equipment and consumables is achieved.

CN119945692APending Publication Date: 2025-05-06WUHAN JINGCHEN INTELLIGENT IDENTIFICATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311450578.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-03
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

Existing encryption and anti-counterfeiting identification technology fails when consumables identification information is leaked, and it is impossible to effectively identify printing equipment and consumables for anti-counterfeiting.

Method used

The cracked encryption anti-counterfeiting identification method is adopted to generate random sequence numbers in the production process of consumables and printing equipment, and a cloud server is used to establish a one-to-one mapping relationship, and to combine the keys in the prime number sequence for encryption and verification.

Benefits of technology

It enhances the anti-counterfeiting identification capabilities of printing equipment and consumables, and even if genuine identification information is leaked, it can effectively prevent illegal use and improve user experience and device security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004528969880000011
    Figure HDA0004528969880000011
  • Figure HDA0004528969880000021
    Figure HDA0004528969880000021
  • Figure HDA0004528969880000022
    Figure HDA0004528969880000022
Patent Text Reader

Abstract

The invention discloses a cracking type encryption anti-counterfeiting identification method and system for printing equipment and consumables. According to the method, m-bit random serial numbers are generated in the consumable production link, and any n-bit sequence x is used as consumable identity information to be written into a consumable storage module; a u-bit random serial number is generated in a printing equipment production link, any v-bit sequence y1 is used as printing equipment identification information to be written into a printing equipment storage module, and any w-bit sequence y2 is used as printing equipment verification information to be written into a consumable storage module; during writing, arranging w-bit printing equipment verification information y2 and n-bit consumable identity information x into a new w + n-bit sequence x1 according to a first sorting algorithm; the cloud server records and stores all information generated in the consumable generation link and the printing equipment production link and written or unwritten information in each link; and carrying out multiple cracking and verification by using related contents subsequently. According to the method and the system, the cracking difficulty is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of printing technology, and more specifically, relates to a cracking-type encryption anti-counterfeiting identification method and system for printing equipment and consumables. Background Art

[0002] Portable smart printing devices represented by label printers and barcode printers are becoming increasingly popular and universal. The existing business model in the industry is based on setting portable printing devices as flow-based products, and consumables with large consumption (such as label paper, carbon ribbon, etc.) as profit-based products. In other words, manufacturers in the industry mainly rely on the production and sales of consumables to obtain necessary profits. Counterfeit and forged consumables are difficult to be well compatible with the original genuine smart printing devices, which can easily cause premature damage to the smart printing devices and seriously affect the user experience. Therefore, there is an urgent need for encryption and anti-counterfeiting identification for portable smart printing devices and consumables in the industry.

[0003] In the existing encryption anti-counterfeiting identification technology, the identification information and verification code of the consumables are mainly written into the consumables RFID chip during the consumables production process. In the anti-counterfeiting identification process, the identification information and verification code are read, and the identification information is verified using a decryption algorithm, and the verification result is checked with the verification code in the consumables RFID chip. If the verification is consistent, the consumables are confirmed to be original and authentic; if the verification is inconsistent, the consumables are confirmed to be non-original and authentic.

[0004] Although the existing technology can play a certain role in anti-counterfeiting identification, when the identification information of consumables is leaked, that is, when illegal manufacturers illegally obtain genuine identification information, the existing encryption anti-counterfeiting solution is completely useless and cannot play its due role. It is also impossible to perform anti-counterfeiting identification on printing equipment. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a cracking-type encrypted anti-counterfeiting identification method and system for printing equipment and consumables, which are difficult to crack.

[0006] To achieve the above-mentioned purpose, according to one aspect of the present invention, a cracking type encryption anti-counterfeiting identification method for a printing device and consumables is provided, comprising the steps of:

[0007] S101, generate an m-bit random serial number in the consumables production link, and write any n-bit sequence x therein as consumables identity information into the consumables storage module; generate a u-bit random serial number in the printing device production link, and write any v-bit sequence y1 therein as printing device identification information into the printing device storage module, and also write any w-bit sequence y2 therein as printing device verification information into the consumables storage module, and when writing, arrange the w-bit printing device verification information y2 and the n-bit consumables identity information x into a new w+n-bit sequence x1 according to a first sorting algorithm; the cloud server records and stores all information generated in the consumables production link and the printing device production link, and information written or not written in each link; the cloud server uses a first conversion algorithm to convert the v-bit printing device identification information and the w-bit printing device verification information into v*-bit and w*-bit serial numbers respectively and establish a one-to-one mapping relationship;

[0008] S102, after the printing device starts working, the printing device reader reads the w+n-bit sequence x1 and the v-bit printing device identification information y1, and the printing device reader uses the inverse algorithm of the first sorting algorithm to split the w+n-bit sequence x1 into the w-bit restoration information of the printing device verification information and the n-bit restoration information of the consumable identification information;

[0009] S103, the printing device controller uses the first conversion algorithm to convert the v-bit printing device identification information y1 and the w-bit printing device verification information into v*-bit and w*-bit serial numbers to be verified respectively, encrypts them and sends them wirelessly to the cloud server for verification;

[0010] S104, after decryption, the cloud server obtains the v*-bit and w*-bit serial numbers to be verified, and traverses and searches to confirm whether the v*-bit and w*-bit serial numbers to be verified have the same one-to-one mapping relationship as the v*-bit and w*-bit serial numbers. If not, the verification fails. If yes, start S105;

[0011] S105, the printing device reader arranges the v-bit printing device identification information y1 and the w-bit printing device verification information y2 into a v+w-bit sequence y according to the second sorting algorithm, arranges the v+w-bit sequence y and the n-bit consumable identification information x into a new v+w+n-bit sequence z according to the third sorting algorithm, and the printing device controller takes a j-bit key from the prime number sequence, and inserts the j-bit key into the v+w+n-bit sequence z according to the preset insertion algorithm and encrypts it and sends it to the cloud server wirelessly;

[0012] S106, after decryption, the cloud server identifies the restoration information of the j-bit key and verifies whether the restoration information of the j-bit key is consistent with the generation record of the j-bit key. If not, the verification fails. If consistent, S107 is started:

[0013] S107, the cloud server splits the v+w-bit and n-bit sequences from the sequence after removing the key, and verifies them with the sequence stored in the cloud server. The verification process is:

[0014] (5) verifying whether the n-bit sequence in the stored m-bit sequence is consistent with the cracked n-bit sequence;

[0015] (6) verifying whether the v+w bit sequence in the stored u bit sequence is consistent with the cracked v+w bit sequence;

[0016] If at least one of (1) and (2) is inconsistent, the verification fails. If (1) and (2) are consistent, the cloud server generates mn-bit consumable identity supplementary information x2 and uvw-bit printing device supplementary information y3 respectively, encrypts them and sends them to the printing device controller;

[0017] S108, after receiving and decrypting the information from the cloud server, the printing device controller arranges the mn bit sequence x2 and the n bit sequence x according to the rules into a new consumable serial number, arranges the uvw bit sequence y3 and the v+w bit sequence y according to the rules into a new printing device serial number, and checks:

[0018] (5) Whether the number of digits of the new consumable serial number formed in S108 is equal to m;

[0019] (6) Whether the number of digits of the new printing device serial number formed in S108 is equal to u;

[0020] If at least one of (1) and (2) is no, the verification fails. If both (1) and (2) are yes, the printing device starts working.

[0021] Further, the method of taking a j-bit key from a prime number sequence comprises the steps of:

[0022] If the number corresponding to the kth digit of the v+w+n digit sequence z is a number in the prime number sequence, k≤v+w+n, then the number corresponding to the kth digit is taken as the first digit, and j digits are taken from the prime number sequence in sequence as the key;

[0023] If the number corresponding to the kth digit of the v+w+n digit sequence z is not a number in the prime number sequence, the number in the prime number sequence closest to the number corresponding to the kth digit is taken as the first digit, and j digits are taken from the prime number sequence in sequence as the key.

[0024] Furthermore, j is 8.

[0025] Furthermore, an m-bit random sequence number is generated by a first random algorithm.

[0026] Furthermore, a u-bit random sequence number is generated by a second random algorithm.

[0027] Furthermore, the cloud server identifies the restoration information of the j-bit key after decryption by: using an inverse algorithm of the preset insertion algorithm to identify the restoration information of the j-bit key from the decrypted information.

[0028] Furthermore, the cloud server splits the v+w-bit and n-bit sequences from the sequence after the key is removed by using an inverse algorithm of the third sorting algorithm to split the v+w-bit and n-bit sequences from the sequence after the key is removed.

[0029] Furthermore, the consumable storage module is a consumable RFID chip.

[0030] Furthermore, the printing device storage module is a printing device RFID chip.

[0031] According to another aspect of the present invention, a cracking encryption anti-counterfeiting identification system for a printing device and consumables is provided, comprising consumables, a printing device and a cloud server, wherein the consumables include a consumable storage module, and the printing device includes a printing device reader / writer, a printing device storage module and a printing device controller, wherein the system is used to implement the steps:

[0032] S101, generate an m-bit random serial number in the consumables production link, and write any n-bit sequence x therein as consumables identity information into the consumables storage module; generate a u-bit random serial number in the printing device production link, and write any v-bit sequence y1 therein as printing device identification information into the printing device storage module, and also write any w-bit sequence y2 therein as printing device verification information into the consumables storage module, and when writing, arrange the w-bit printing device verification information y2 and the n-bit consumables identity information x into a new w+n-bit sequence x1 according to a first sorting algorithm; the cloud server records and stores all information generated in the consumables production link and the printing device production link, and information written or not written in each link; the cloud server uses a first conversion algorithm to convert the v-bit printing device identification information and the w-bit printing device verification information into v*-bit and w*-bit serial numbers respectively and establish a one-to-one mapping relationship;

[0033] S102, after the printing device starts working, the printing device reader reads the w+n-bit sequence x1 and the v-bit printing device identification information y1, and the printing device reader uses the inverse algorithm of the first sorting algorithm to split the w+n-bit sequence x1 into the w-bit restoration information of the printing device verification information and the n-bit restoration information of the consumable identification information;

[0034] S103, the printing device controller uses the first conversion algorithm to convert the v-bit printing device identification information y1 and the w-bit printing device verification information into v*-bit and w*-bit serial numbers to be verified respectively, encrypts them and sends them wirelessly to the cloud server for verification;

[0035] S104, after decryption, the cloud server obtains the v*-bit and w*-bit serial numbers to be verified, and traverses and searches to confirm whether the v*-bit and w*-bit serial numbers to be verified have the same one-to-one mapping relationship as the v*-bit and w*-bit serial numbers. If not, the verification fails. If yes, start S105;

[0036] S105, the printing device reader arranges the v-bit printing device identification information y1 and the w-bit printing device verification information y2 into a v+w-bit sequence y according to the second sorting algorithm, arranges the v+w-bit sequence y and the n-bit consumable identification information x into a new v+w+n-bit sequence z according to the third sorting algorithm, and the printing device controller takes a j-bit key from the prime number sequence, and inserts the j-bit key into the v+w+n-bit sequence z according to the preset insertion algorithm and encrypts it and sends it to the cloud server wirelessly;

[0037] S106, after decryption, the cloud server identifies the restoration information of the j-bit key and verifies whether the restoration information of the j-bit key is consistent with the generation record of the j-bit key. If not, the verification fails. If consistent, S107 is started:

[0038] S107, the cloud server splits the v+w-bit and n-bit sequences from the sequence after removing the key, and verifies them with the sequence stored in the cloud server. The verification process is:

[0039] (7) verifying whether the n-bit sequence in the stored m-bit sequence is consistent with the cracked n-bit sequence;

[0040] (8) Verify whether the v+w bit sequence in the stored u bit sequence is consistent with the cracked v+w bit sequence;

[0041] If at least one of (1) and (2) is inconsistent, the verification fails. If (1) and (2) are consistent, the cloud server generates mn-bit consumable identity supplementary information x2 and uvw-bit printing device supplementary information y3 respectively, encrypts them and sends them to the printing device controller;

[0042] S108, after receiving and decrypting the information from the cloud server, the printing device controller arranges the mn bit sequence x2 and the n bit sequence x according to the rules into a new consumable serial number, arranges the uvw bit sequence y3 and the v+w bit sequence y according to the rules into a new printing device serial number, and checks:

[0043] (7) Whether the number of digits of the new consumable serial number arranged in S108 is equal to m:

[0044] (8) Whether the number of digits of the new printing device serial number formed in S108 is equal to u:

[0045] If at least one of (1) and (2) is no, the verification fails. If both (1) and (2) are yes, the printing device starts working.

[0046] In general, compared with the prior art, the above technical solution conceived by the present invention generates an N-bit random number, determines an M-bit key based on the N-bit random number and the Fibonacci sequence, and inserts the M-bit key into the second verification information according to a preset method to form the third verification information to be verified, thereby increasing the difficulty of cracking. Even if unscrupulous manufacturers illegally obtain genuine identification information, anti-counterfeiting identification can still be performed on the product, and anti-counterfeiting identification can also be performed on the printing device. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a flow chart of a cracking type encryption anti-counterfeiting identification method for a printing device and consumables according to an embodiment of the present invention;

[0048] Figure 2 It is a schematic diagram of a cracking type encryption anti-counterfeiting identification system of a printing device and consumables according to an embodiment of the present invention;

[0049] Figure 3 is a schematic diagram of a printing device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0051] In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. "Multiple" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0052] Unless otherwise specified, "plurality" means two or more.

[0053] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product or equipment comprising a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products or equipment.

[0054] The naming or numbering of the steps in the embodiments of the present invention does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.

[0055] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0056] The present invention provides a cracking-type encryption anti-counterfeiting identification method and system for a printing device and consumables, which are respectively described below.

[0057] like Figure 1 As shown, a cracking type encryption anti-counterfeiting identification method of a printing device and consumables according to an embodiment of the present invention comprises the following steps:

[0058] S101, generate an m-bit random serial number in the consumables production link, and write any n-bit sequence x therein as consumables identity information into the consumables storage module; generate a u-bit random serial number in the printing device production link, and write any v-bit sequence y1 therein as printing device identification information into the printing device storage module, and also write any w-bit sequence y2 therein as printing device verification information into the consumables storage module, and when writing, arrange the w-bit printing device verification information y2 and the n-bit consumables identity information x into a new w+n-bit sequence x1 according to a first sorting algorithm; the cloud server records and stores all information generated in the consumables generation link and the printing device production link, and the information written or not written in each link; the cloud server uses a first conversion algorithm to convert the v-bit printing device identification information and the w-bit printing device verification information into v*-bit and w*-bit serial numbers respectively and establish a one-to-one mapping relationship.

[0059] The difference from the prior art is that in the embodiment of the present invention, the generated m-bit random serial number is not directly written into the consumable storage module, but n bits are selected from it as the consumable identity information and written into the consumable storage module. For example, a 32-bit random serial number is generated in the consumable production link, and any 16-bit sequence x is written into the consumable storage module as the consumable identity information.

[0060] The difference from the prior art is that in the embodiment of the present invention, the generated u-bit random serial number is not directly written into the printing device storage module, but an arbitrary v-bit sequence y1 is selected from it as the printing device identification information and written into the printing device storage module, and an arbitrary w-bit sequence y2 is also written into the consumable storage module as the printing device verification information. For example, a 64-bit random serial number is generated in the printing device production link, and an arbitrary 32-bit sequence y1 is written into the printing device storage module as the printing device identification information, and an arbitrary 16-bit sequence y2 is also written into the consumable storage module as the printing device verification information, and the 16-bit sequence x and the 16-bit sequence y2 form a 32-bit sequence, which is stored in the consumable storage module.

[0061] The cloud server records and stores the m-bit random serial number, u-bit random serial number, n-bit consumable identity information, v-bit printing device identification information y1, w-bit printing device verification information y2 generated by the consumable generation link and the printing device production link, as well as the unwritten information.

[0062] The cloud server also uses the first conversion algorithm to convert the v-bit printing device identification information and the w-bit printing device verification information into v*-bit and w*-bit serial numbers respectively and establish a one-to-one mapping relationship, that is, a v*-bit serial number can be queried to find the unique corresponding w*-bit serial number, and a w*-bit serial number can be queried to find the unique corresponding v*-bit serial number.

[0063] The first conversion algorithm may be implemented in any manner, for example, a base conversion algorithm may be used.

[0064] S102, after the printing device starts working, the printing device reader reads the w+n-bit sequence x1 and the v-bit printing device identification information y1, and the printing device reader uses the inverse algorithm of the first sorting algorithm to split the w+n-bit sequence x1 into w-bit restoration information of the printing device verification information and n-bit restoration information of the consumable identification information.

[0065] After the printing device starts working, the printing device reader reads the w+n bit sequence x1 from the consumable storage module and reads the v bit printing device identification information y1 from the printing device storage module. Then, the w bit printing device verification information restoration information and the n bit consumable identification information restoration information are split from the read w+n bit sequence x1.

[0066] S103, the printing device controller uses the first conversion algorithm to convert the v-bit printing device identification information y1 and the w-bit printing device verification information into v*-bit and w*-bit serial numbers to be verified respectively, encrypt them and send them wirelessly to the cloud server for verification.

[0067] The printing device controller uses the first conversion algorithm to convert the v-bit printing device identification information y1 read from the printing storage module into a v*-bit serial number to be verified, and also uses the first conversion algorithm to convert the restored information of the w-bit printing device verification information obtained by cracking in step S102 into a w*-bit serial number to be verified. The v*-bit and w*-bit serial numbers to be verified are encrypted and sent wirelessly to the cloud server for verification.

[0068] S104, after decryption, the cloud server obtains the v*-bit and w*-bit serial numbers to be verified, and traverses the search to confirm whether the v*-bit and w*-bit serial numbers to be verified have the same one-to-one mapping relationship as the v*-bit and w*-bit serial numbers. If not, the verification fails. If so, start S105.

[0069] If both the consumables and the printing device are genuine, then the v*-bit serial number to be verified should be equal to the v*-bit serial number, the w*-bit serial number to be verified should be equal to the w*-bit serial number, and the mapping relationship between the v*-bit and w*-bit serial numbers to be verified should be the same as the mapping relationship between the v*-bit and w*-bit serial numbers. Therefore, if the v*-bit and w*-bit serial numbers to be verified do not have the same one-to-one mapping relationship as the v*-bit and w*-bit serial numbers, the verification fails. If the v*-bit and w*-bit serial numbers to be verified have the same one-to-one mapping relationship as the v*-bit and w*-bit serial numbers, S105 is started.

[0070] S105, the printing device reader / writer arranges the v-bit printing device identity information y1 and the w-bit printing device verification information y2 into a v+w-bit sequence y according to the second sorting algorithm, and arranges the v+w-bit sequence y and the n-bit consumable identity information x into a new v+w+n-bit sequence z according to the third sorting algorithm. The printing device controller takes a j-bit key from the prime number series, and inserts the j-bit key into the v+w+n-bit sequence z according to the preset insertion algorithm and encrypts it and sends it wirelessly to the cloud server.

[0071] In other words, the v-bit printing device identification information y1 and the w-bit printing device verification information y2 do not have to be arranged in sequence, but are arranged into a v+w-bit sequence y according to a preset second sorting algorithm, which can be arranged in sequence or in other ways. The v+w-bit sequence y and the n-bit consumable identification information x do not have to be arranged in sequence, but are arranged into a v+w+n-bit sequence z according to a preset third sorting algorithm.

[0072] After obtaining the v+w+n bit sequence z, take the j-bit key from the prime number sequence and insert the j-bit key into the v+w+n bit sequence z according to the preset insertion algorithm. The prime number sequence refers to the sequence composed of all prime numbers, specifically 2, 3, 5, 7, 11, 13, 17...

[0073] S106, after decryption, the cloud server identifies the restoration information of the j-bit key and verifies whether the restoration information of the j-bit key is consistent with the generation record of the j-bit key. If not, the verification fails. If consistent, S107 is started.

[0074] After receiving the information, the cloud server first decrypts it, and then uses the inverse algorithm of the third sorting algorithm to identify the restored information of the j-bit key. If they are inconsistent, the verification fails. If they are consistent, S107 is started.

[0075] S107, the cloud server splits the v+w-bit and n-bit sequences from the sequence after removing the key, and verifies them with the sequence stored in the cloud server. The verification process is:

[0076] (9) verifying whether the n-bit sequence in the stored m-bit sequence is consistent with the cracked n-bit sequence;

[0077] (10) Verify whether the v+w bit sequence in the stored u bit sequence is consistent with the cracked v+w bit sequence;

[0078] If at least one of (1) and (2) is inconsistent, the verification fails. If (1) and (2) are consistent, the cloud server generates mn-bit consumable identity supplementary information x2 and uvw-bit printing device supplementary information y3 respectively, encrypts them and sends them to the printing device controller.

[0079] If the verification in S106 is consistent, the sequence after removing the key is a v+w+n-bit sequence. In S107, the v+w-bit and n-bit sequences are first split from the sequence after removing the key, and then verified with the n-bit sequence in the m-bit sequence and the v+w-bit sequence in the u-bit sequence stored in S101. If at least one of (1) and (2) is inconsistent, the verification fails, indicating that at least one of the consumables and the printing device is a non-genuine product. Only when (1) and (2) are consistent, the mn-bit consumable identity supplementary information x2 and the uvw-bit printing device supplementary information y3 are generated and encrypted and sent to the printing device controller for the next step of verification.

[0080] S108, after receiving and decrypting the information from the cloud server, the printing device controller arranges the mn bit sequence x2 and the n bit sequence x according to the rules into a new consumable serial number, arranges the uvw bit sequence y3 and the v+w bit sequence y according to the rules into a new printing device serial number, and checks:

[0081] (9) Whether the number of digits of the new consumable serial number arranged in S108 is equal to m;

[0082] (10) Whether the number of digits of the new printing device serial number formed in S108 is equal to u;

[0083] If at least one of (1) and (2) is no, the verification fails. If both (1) and (2) are yes, the printing device starts working.

[0084] Verify again on the printing device controller. After decrypting the received information, the printing device controller obtains the mn bit sequence x2 and the uvw bit sequence y3, and arranges the mn bit sequence x2 and the n bit sequence x stored as a backup in S101 according to the rules to form a new consumable serial number, and arranges the uvw bit sequence y3 and the v+w bit sequence y stored as a backup in S101 according to the rules to form a new printing device serial number. Verify whether the number of digits in the new consumable serial number is equal to m, and whether the number of digits in the new printing device serial number is equal to u. If at least one of (1) and (2) is no, it means that at least one of the consumables and the printing device is a non-genuine product. Only when (1) and (2) are equal, it means that both the consumables and the printing device are genuine products, and the printing device starts working.

[0085] Further, the method of taking a j-bit key from a prime number sequence comprises the steps of:

[0086] If the number corresponding to the kth bit of the v+w+n bit sequence z is a number in the prime number sequence, k≤v+w+n, then the number corresponding to the kth bit is taken as the first bit, and j bits are taken from the prime number sequence in sequence as the key.

[0087] For example, if the v+w+n bit sequence is 15838686, k=2, j=4, then the number corresponding to the second bit is the number 5 in the prime number sequence, and the j-bit key is 5, 7, 1, 1. It is particularly noted that for prime numbers with multiple bits, they are considered as multi-bit keys. For example, the prime number 11 is considered as key 1, 1.

[0088] If the number corresponding to the kth digit of the v+w+n digit sequence z is not a number in the prime number sequence, the number in the prime number sequence closest to the number corresponding to the kth digit is taken as the first digit, and j digits are taken from the prime number sequence in sequence as the key.

[0089] For example, if the v+w+n bit sequence is 15838686, k=3, j=4, then the number corresponding to the third bit is 8, which is not a number in the prime number sequence. The number 7 closest to the number corresponding to the k-th bit in the prime number sequence is used as the first bit. The j-bit key is 7, 1, 1, 1, where the first two 1s come from the prime number 11, and the last 1 comes from the first bit of the prime number 13.

[0090] Furthermore, j is 8.

[0091] Furthermore, the m-bit random serial number is generated by a first random algorithm. The first random algorithm may be stored in advance in the burning software.

[0092] Furthermore, a u-bit random serial number is generated by a second random algorithm. The second random algorithm may be pre-stored in the burning software.

[0093] Further, the cloud server identifies the restored information of the j-bit key after decryption by: using the inverse algorithm of the preset insertion algorithm to identify the restored information of the j-bit key from the decrypted information. The inverse algorithm refers to the algorithm of the inverse operation, such as the inverse operation of calculating B from A and the inverse operation of calculating A from B.

[0094] Furthermore, the cloud server splits the v+w-bit and n-bit sequences from the sequence after the key is removed by using an inverse algorithm of the third sorting algorithm to split the v+w-bit and n-bit sequences from the sequence after the key is removed.

[0095] Furthermore, the consumable storage module is a consumable RFID chip. The RFID chip can be read and written through wireless communication, avoiding major modifications to the structure of the printing device.

[0096] Furthermore, the printing device storage module is a printing device RFID chip. The RFID chip can be read and written through wireless communication, avoiding major modifications to the printing device structure.

[0097] like Figure 2 and Figure 3 As shown, a cracking encryption anti-counterfeiting identification system of a printing device and consumables according to an embodiment of the present invention includes consumables, a printing device and a cloud server, the consumables include a consumable storage module, the printing device includes a printing device reader / writer, a printing device storage module and a printing device controller, and the system is used to implement the steps:

[0098] S101, generate an m-bit random serial number in the consumables production link, and write any n-bit sequence x therein as consumables identity information into the consumables storage module; generate a u-bit random serial number in the printing device production link, and write any v-bit sequence y1 therein as printing device identification information into the printing device storage module, and also write any w-bit sequence y2 therein as printing device verification information into the consumables storage module, and when writing, arrange the w-bit printing device verification information y2 and the n-bit consumables identity information x into a new w+n-bit sequence x1 according to a first sorting algorithm; the cloud server records and stores all information generated in the consumables production link and the printing device production link, and information written or not written in each link; the cloud server uses a first conversion algorithm to convert the v-bit printing device identification information and the w-bit printing device verification information into v*-bit and w*-bit serial numbers respectively and establish a one-to-one mapping relationship;

[0099] S102, after the printing device starts working, the printing device reader reads the w+n-bit sequence x1 and the v-bit printing device identification information y1, and the printing device reader uses the inverse algorithm of the first sorting algorithm to split the w+n-bit sequence x1 into the w-bit restoration information of the printing device verification information and the n-bit restoration information of the consumable identification information;

[0100] S103, the printing device controller uses the first conversion algorithm to convert the v-bit printing device identification information y1 and the w-bit printing device verification information into v*-bit and w*-bit serial numbers to be verified respectively, encrypts them and sends them wirelessly to the cloud server for verification;

[0101] S104, after decryption, the cloud server obtains the v*-bit and w*-bit serial numbers to be verified, and traverses and searches to confirm whether the v*-bit and w*-bit serial numbers to be verified have the same one-to-one mapping relationship as the v*-bit and w*-bit serial numbers. If not, the verification fails. If yes, start S105;

[0102] S105, the printing device reader arranges the v-bit printing device identification information y1 and the w-bit printing device verification information y2 into a v+w-bit sequence y according to the second sorting algorithm, arranges the v+w-bit sequence y and the n-bit consumable identification information x into a new v+w+n-bit sequence z according to the third sorting algorithm, and the printing device controller takes a j-bit key from the prime number sequence, and inserts the j-bit key into the v+w+n-bit sequence z according to the preset insertion algorithm and encrypts it and sends it to the cloud server wirelessly;

[0103] S106, after decryption, the cloud server identifies the restoration information of the j-bit key and verifies whether the restoration information of the j-bit key is consistent with the generation record of the j-bit key. If not, the verification fails. If consistent, S107 is started:

[0104] S107, the cloud server splits the v+w-bit and n-bit sequences from the sequence after removing the key, and verifies them with the sequence stored in the cloud server. The verification process is:

[0105] (11) verifying whether the n-bit sequence in the stored m-bit sequence is consistent with the cracked n-bit sequence;

[0106] (12) verifying whether the v+w bit sequence in the stored u bit sequence is consistent with the cracked v+w bit sequence;

[0107] If at least one of (1) and (2) is inconsistent, the verification fails. If (1) and (2) are consistent, the cloud server generates mn-bit consumable identity supplementary information x2 and uvw-bit printing device supplementary information y3 respectively, encrypts them and sends them to the printing device controller;

[0108] S108, after receiving and decrypting the information from the cloud server, the printing device controller arranges the mn bit sequence x2 and the n bit sequence x according to the rules into a new consumable serial number, arranges the uvw bit sequence y3 and the v+w bit sequence y according to the rules into a new printing device serial number, and checks:

[0109] (11) Whether the number of digits of the new consumable serial number arranged in S108 is equal to m:

[0110] (12) Whether the number of digits of the new printing device serial number formed in S108 is equal to u:

[0111] If at least one of (1) and (2) is no, the verification fails. If both (1) and (2) are yes, the printing device starts working.

[0112] The working principle and technical effect of the system are the same as the above method and will not be repeated here.

[0113] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A cracking encryption anti-counterfeiting identification method for printing equipment and consumables, characterized in that: Includes steps: S101, generate an m-bit random serial number in the consumables production link, and write any n-bit sequence x therein as consumables identity information into the consumables storage module; generate a u-bit random serial number in the printing device production link, and write any v-bit sequence y1 therein as printing device identification information into the printing device storage module, and also write any w-bit sequence y2 therein as printing device verification information into the consumables storage module, and when writing, arrange the w-bit printing device verification information y2 and the n-bit consumables identity information x into a new w+n-bit sequence x1 according to a first sorting algorithm; the cloud server records and stores all information generated in the consumables production link and the printing device production link, and information written or not written in each link; the cloud server uses a first conversion algorithm to convert the v-bit printing device identification information and the w-bit printing device verification information into v*-bit and w*-bit serial numbers respectively and establish a one-to-one mapping relationship; S102, after the printing device starts working, the printing device reader reads the w+n-bit sequence x1 and the v-bit printing device identification information y1, and the printing device reader uses the inverse algorithm of the first sorting algorithm to split the w+n-bit sequence x1 into the w-bit restoration information of the printing device verification information and the n-bit restoration information of the consumable identification information; S103, the printing device controller uses the first conversion algorithm to convert the v-bit printing device identification information y1 and the w-bit printing device verification information into v*-bit and w*-bit serial numbers to be verified respectively, encrypts them and sends them wirelessly to the cloud server for verification; S104, after decryption, the cloud server obtains the v*-bit and w*-bit serial numbers to be verified, and traverses and searches to confirm whether the v*-bit and w*-bit serial numbers to be verified have the same one-to-one mapping relationship as the v*-bit and w*-bit serial numbers. If not, the verification fails. If yes, start S105; S105, the printing device reader arranges the v-bit printing device identification information y1 and the w-bit printing device verification information y2 into a v+w-bit sequence y according to the second sorting algorithm, arranges the v+w-bit sequence y and the n-bit consumable identification information x into a new v+w+n-bit sequence z according to the third sorting algorithm, and the printing device controller takes a j-bit key from the prime number sequence, and inserts the j-bit key into the v+w+n-bit sequence z according to the preset insertion algorithm and encrypts it and sends it to the cloud server wirelessly; S106, after decryption, the cloud server identifies the restoration information of the j-bit key and verifies whether the restoration information of the j-bit key is consistent with the generation record of the j-bit key. If not, the verification fails. If consistent, S107 is started: S107, the cloud server splits the v+w-bit and n-bit sequences from the sequence after removing the key, and verifies them with the sequence stored in the cloud server. The verification process is as follows: (1) verifying whether the n-bit sequence in the stored m-bit sequence is consistent with the cracked n-bit sequence; (2) verifying whether the v+w bit sequence in the stored u bit sequence is consistent with the cracked v+w bit sequence; If at least one of (1) and (2) is inconsistent, the verification fails. If (1) and (2) are consistent, the cloud server generates mn-bit consumable identity supplementary information x2 and uvw-bit printing device supplementary information y3 respectively, encrypts them and sends them to the printing device controller; S108, after receiving and decrypting the information from the cloud server, the printing device controller arranges the mn bit sequence x2 and the n bit sequence x according to the rules into a new consumable serial number, arranges the uvw bit sequence y3 and the v+w bit sequence y according to the rules into a new printing device serial number, and checks: (1) Whether the number of digits of the new consumable serial number arranged in S108 is equal to m; (2) Whether the number of digits of the new printing device serial number formed in S108 is equal to u; If at least one of (1) and (2) is no, the verification fails. If both (1) and (2) are yes, the printing device starts working.

2. The cracking encryption anti-counterfeiting identification method of the printing device and consumables according to claim 1, characterized in that: The method of taking a j-bit key from a prime number sequence comprises the following steps: If the number corresponding to the kth digit of the v+w+n digit sequence z is a number in the prime number sequence, k≤v+w+n, then the number corresponding to the kth digit is taken as the first digit, and j digits are taken from the prime number sequence in sequence as the key; If the number corresponding to the kth digit of the v+w+n digit sequence z is not a number in the prime number sequence, the number in the prime number sequence closest to the number corresponding to the kth digit is taken as the first digit, and j digits are taken from the prime number sequence in sequence as the key.

3. The cracking encryption anti-counterfeiting identification method of the printing device and consumables according to claim 1, characterized in that: j is 8.

4. The cracking encryption anti-counterfeiting identification method of the printing device and consumables according to claim 1, characterized in that: Generate an m-bit random sequence number using a first random algorithm.

5. The cracking encryption anti-counterfeiting identification method of the printing device and consumables according to claim 1, characterized in that: A u-bit random sequence number is generated by a second random algorithm.

6. The cracking encryption anti-counterfeiting identification method of the printing device and consumables according to claim 1, characterized in that: The cloud server identifies the restored information of the j-bit key after decryption by: using the inverse algorithm of the preset insertion algorithm to identify the restored information of the j-bit key from the decrypted information.

7. The cracking encryption anti-counterfeiting identification method of the printing device and consumables according to claim 1, characterized in that: The cloud server splits the v+w-bit and n-bit sequences from the sequence after the key is removed by using the inverse algorithm of the third sorting algorithm to split the v+w-bit and n-bit sequences from the sequence after the key is removed.

8. The cracking encryption anti-counterfeiting identification method of the printing device and consumables according to claim 1, characterized in that: The consumable storage module is a consumable RFID chip.

9. The cracking encryption anti-counterfeiting identification method of the printing device and consumables according to claim 1, characterized in that: The printing device storage module is a printing device RFID chip.

10. A cracking type encryption anti-counterfeiting identification system for printing equipment and consumables, characterized in that: The system includes consumables, a printing device and a cloud server, wherein the consumables include a consumable storage module, and the printing device includes a printing device reader / writer, a printing device storage module and a printing device controller. The system is used to implement the following steps: S101, generate an m-bit random serial number in the consumables production link, and write any n-bit sequence x therein as consumables identity information into the consumables storage module; generate a u-bit random serial number in the printing device production link, and write any v-bit sequence y1 therein as printing device identification information into the printing device storage module, and also write any w-bit sequence y2 therein as printing device verification information into the consumables storage module, and when writing, arrange the w-bit printing device verification information y2 and the n-bit consumables identity information x into a new w+n-bit sequence x1 according to a first sorting algorithm; the cloud server records and stores all information generated in the consumables production link and the printing device production link, and information written or not written in each link; the cloud server uses a first conversion algorithm to convert the v-bit printing device identification information and the w-bit printing device verification information into v*-bit and w*-bit serial numbers respectively and establish a one-to-one mapping relationship; S102, after the printing device starts working, the printing device reader reads the w+n-bit sequence x1 and the v-bit printing device identification information y1, and the printing device reader uses the inverse algorithm of the first sorting algorithm to split the w+n-bit sequence x1 into the w-bit restoration information of the printing device verification information and the n-bit restoration information of the consumable identification information; S103, the printing device controller uses the first conversion algorithm to convert the v-bit printing device identification information y1 and the w-bit printing device verification information into v*-bit and w*-bit serial numbers to be verified respectively, encrypts them and sends them wirelessly to the cloud server for verification; S104, after decryption, the cloud server obtains the v*-bit and w*-bit serial numbers to be verified, and traverses and searches to confirm whether the v*-bit and w*-bit serial numbers to be verified have the same one-to-one mapping relationship as the v*-bit and w*-bit serial numbers. If not, the verification fails. If yes, start S105; S105, the printing device reader arranges the v-bit printing device identification information y1 and the w-bit printing device verification information y2 into a v+w-bit sequence y according to the second sorting algorithm, arranges the v+w-bit sequence y and the n-bit consumable identification information x into a new v+w+n-bit sequence z according to the third sorting algorithm, and the printing device controller takes a j-bit key from the prime number sequence, and inserts the j-bit key into the v+w+n-bit sequence z according to the preset insertion algorithm and encrypts it and sends it to the cloud server wirelessly; S106, after decryption, the cloud server identifies the restoration information of the j-bit key and verifies whether the restoration information of the j-bit key is consistent with the generation record of the j-bit key. If not, the verification fails. If consistent, S107 is started: S107, the cloud server splits the v+w-bit and n-bit sequences from the sequence after removing the key, and verifies them with the sequence stored in the cloud server. The verification process is as follows: (3) verifying whether the n-bit sequence in the stored m-bit sequence is consistent with the cracked n-bit sequence; (4) verifying whether the v+w bit sequence in the stored u bit sequence is consistent with the cracked v+w bit sequence; If at least one of (1) and (2) is inconsistent, the verification fails. If (1) and (2) are consistent, the cloud server generates mn-bit consumable identity supplementary information x2 and uvw-bit printing device supplementary information y3 respectively, encrypts them and sends them to the printing device controller; S108, after receiving and decrypting the information from the cloud server, the printing device controller arranges the mn bit sequence x2 and the n bit sequence x according to the rules into a new consumable serial number, arranges the uvw bit sequence y3 and the v+w bit sequence y according to the rules into a new printing device serial number, and checks: (3) Whether the number of digits of the new consumable serial number arranged in S108 is equal to m: (4) Whether the number of digits of the new printing device serial number arranged in S108 is equal to u: If at least one of (1) and (2) is no, the verification fails. If both (1) and (2) are yes, the printing device starts working.