System and method for realizing anti-counterfeiting and anti-channel conflict of multi-code association by using invisible tagging
Through invisible coding technology, the dynamic correspondence between latent code and anti-counterfeiting code is generated on the product identification, and the blockchain is used to store data, which solves the problems of easy wiping and data barriers in the existing technology, and realizes real-time correlation and efficient verification of product anti-counterfeiting and traceability.
Patent Information
- Application Number
- CN202510581156.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2025-08-15
AI Technical Summary
In the existing anti-counterfeiting and traceability technologies of goods, explicit or implicit marks are easily wiped off, the amount of information is insufficient, and traditional anti-counterfeiting technology is easily copied. Data barriers make it impossible to achieve real-time correlation between anti-counterfeiting data and logistics information, and the coding rules are fixed lack of dynamic verification.
Invisible coding technology is adopted to generate dynamic correspondence between latent code and anti-counterfeiting code through optical encryption algorithm, embedded in the product identification carrier, and use blockchain network to store associated data to verify the device's reading of latent codes to verify the consistency of multiple codes and trigger a hierarchical alarm.
The double-layer hiding of invisible codes is realized, and the dynamic correspondence relationship is improved, the threshold for counterfeiting and counterfeiting is improved, the data is synchronized in real time, and the ease of auditing is improved. The binding relationship between anti-counterfeiting and hidden encoding is updated every 24 hours, and the cracking timeliness is approaching zero.
Smart Images

Figure CN120494842A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a system and method for preventing counterfeiting and counterfeiting by using invisible coding to realize multi-code association, belonging to the technical field of commodity anti-counterfeiting and traceability. Background Art
[0002] In recent years, product anti-counterfeiting and traceability technologies have become core means to ensure supply chain security and safeguard brand rights. In existing product traceability technologies, explicit or implicit marks on printed materials are easily wiped off, and the printing area is limited, and the amount of hidden information is insufficient. This results in an insufficient number of permutations and combinations of traceable information when the number of products is extremely large, making it difficult to meet market demand. Traditional anti-counterfeiting technologies mostly rely on static QR codes or digital codes, which are easily copied by high-precision scanning equipment. Existing physical anti-counterfeiting labels (such as holographic labels and laser engravings) are easily affected by environmental factors during transportation and warehousing. Currently, each link in the supply chain (production, logistics, and sales) mostly uses independent information systems, forming data barriers, and companies cannot achieve real-time correlation between anti-counterfeiting data and logistics information. Traditional anti-channeling technology is mainly implemented through regional coding, but the coding rules are fixed and lack dynamic verification. For example, the patent application publication number CN112208860A discloses an anti-counterfeiting traceability identification system and method based on the association of light and dark codes, which establishes a one-to-one correspondence between invisible codes and QR codes, and stores the invisible codes in an information list; however, no multi-code association is formed, data barriers exist, and real-time association between anti-counterfeiting data and logistics information cannot be achieved. Summary of the Invention
[0003] The present invention aims to propose a system and method for anti-counterfeiting and anti-channelling by using invisible coding to achieve multi-code association. This system introduces an image space constraint loss term and a spatial smoothness penalty term in residual compensation to ensure spatial consistency and smoothness of the inversion results. This method addresses the problems encountered in the prior art.
[0004] The method for preventing counterfeiting and counterfeiting by using invisible coding to achieve multi-code association according to the present invention comprises the following steps:
[0005] S1: Generate a composite image containing a latent code on the product identification carrier. The latent code is fused with the original image through an optical encryption algorithm and requires special equipment to read;
[0006] S2: Generate a dynamic correspondence between the security code and the latent code, and establish a dynamic association rule between the validity status of the security code and the physical integrity of the latent code;
[0007] S3: Dynamically bind the hidden code with the product code, anti-counterfeiting code, and order / SKU data during product shipment to form a multi-dimensional relationship.
[0008] S4: Encrypt the associated data and write it into the blockchain network. The main chain stores the data summary, and the side chain stores the encrypted details.
[0009] S5: The latent code is read by the verification device to verify the consistency of multiple codes and regional compliance. If there is any channel diversion or tampering, a graded alarm is triggered.
[0010] Preferably, in step S1, the latent code is embedded in the verification area or reserved blank space of the product barcode 69; the composite image is realized by offset printing, gravure printing or laser micro-engraving technology, and the latent code is invisible under visible light and recognizable under infrared band.
[0011] Preferably, in step S2, the characters at the designated position of the anti-counterfeiting code generate an encryption key for the latent code, and the encryption key for the latent code is generated in the following manner:
[0012] S21: extract the 3rd, 7th and 11th characters of the anti-counterfeiting code to generate an initial character sequence;
[0013] S22: Convert the character into an 8-bit binary value;
[0014] S23: Perform a circular shift operation on each binary value: the 3rd character is circularly shifted to the left by 3 bits, the 7th character is circularly shifted to the right by 2 bits, and the 11th character is circularly shifted to the left by 1 bit;
[0015] S24: Perform XOR and bit mask operations on the bit-shifted binary value to generate a 24-bit intermediate key;
[0016] S25: The intermediate key is expanded to a 128-bit encryption key through the key expansion mechanism of the SM4 national encryption algorithm.
[0017] Preferably, the intermediate key generation formula in step S24 is:
[0018]
[0019] Among them: B′3, B′7, B′ 11 is the binary value after shifting, represents a bitwise exclusive OR operation, || represents a binary concatenation operation, and & represents a bitwise AND operation; 0xF0 is a mask value; and 0xAA is a fixed value.
[0020] Preferably, the key expansion in step S25 satisfies: if the intermediate key is less than 128 bits, it is padded to 128 bits by cyclic splicing; and the final round key is generated by 32 rounds of nonlinear transformation using the SM4 algorithm.
[0021] Preferably, in step S4, the main chain adopts the Hyperledger Fabric architecture and the side chain adopts IPFS distributed storage.
[0022] Preferably, the verification device in step S5 includes: an optical acquisition module: containing a near-infrared light source, a polarization filter and a CMOS sensor, for extracting latent codes; a data processing module: integrating an SM4 encryption unit and a blockchain light node verification unit; a response execution module: including a multi-level alarm device and a work order generation interface; a human-computer interaction module: a touch screen, a voice unit and a data export interface.
[0023] Preferably, the hierarchical alarm includes three levels of response:
[0024] Level 1 response, verification failed once: trigger the device's local buzzer and LED alarm;
[0025] Level 2 response, 3 consecutive failures: freeze the current product barcode and upload the abnormal event to the blockchain;
[0026] Level 3 response, regional mismatch: Generate a cross-selling work order and start the reverse tracing process.
[0027] It also includes a latent code regeneration mechanism: when the latent code is partially damaged, a temporary verification code is calculated by the edge node, with a validity period of T = 24h×(1-damage rate).
[0028] Preferably, the latent code is dynamically associated with the last digit of the product code, and the duplicate is invalid due to the failure of the last digit verification.
[0029] The anti-counterfeiting and anti-channelling system of the present invention that utilizes invisible coding to realize multi-code association comprises:
[0030] Coding device: Integrates optical encryption module and printing control unit to generate composite images;
[0031] Data binding server: includes a key generation unit and a dynamic association module, which is used to execute the encryption key generation algorithm and perform three-dimensional binding of the latent code with the product code and anti-counterfeiting code;
[0032] Blockchain evidence storage cluster module: includes main chain nodes and side chain storage nodes, used to store associated data;
[0033] Verification terminal: A handheld device equipped with an infrared sensor and blockchain verification module, used to read and verify latent codes, and check multi-code consistency and regional compliance;
[0034] Audit management platform: A visual dashboard that displays real-time channel diversion alerts and traceability paths, used to trigger graded alerts when channel diversion or tampering occurs.
[0035] Compared with existing technologies, the system and method for anti-counterfeiting and anti-channelling by using invisible coding to achieve multi-code association of the present invention has the following beneficial effects:
[0036] 1. The invisible code is hidden within the 69 product code. If it is destroyed, the product cannot be circulated normally in the market. This provides a regulatory oversight mechanism, making it more difficult for saboteurs to tamper with it. The invisible code cannot be copied. Any copying will invalidate the underlying data, and authentication equipment cannot read it.
[0037] 2. Realize the data correspondence between the designated positions of the invisible code and the anti-counterfeiting code, realize double-layer hiding, dynamic correspondence, and realize the association of multiple codes for one product, further significantly raising the threshold for counterfeiting and forgery, and improving the ease of inspection.
[0038] 3. Dynamically bind the hidden code to the product code, security code, and order / SKU data, achieving real-time data synchronization with the database, establishing a digital product information library, and enabling rapid front-end and back-end verification and query. The binding relationship between the security code and the hidden code is dynamically updated every 24 hours, making the timeliness of cracking close to zero.
[0039] 4. The main chain stores Merkle Root, and the side chain shards encrypt and store detailed data, improving data query efficiency (real-time synchronization: data synchronization delay of each node in the supply chain is ≤1 second, supporting 1000TPS concurrent writes. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 This is a flow chart of a method for anti-counterfeiting and anti-channelling method using invisible coding to achieve multi-code association according to an embodiment of the present invention;
[0041] Figure 2 Schematic diagram of latent coding processing in an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of latent data acquisition in an embodiment of the present invention;
[0043] Figure 4 Schematic diagram of multi-code association in an embodiment of the present invention;
[0044] Figure 5 Schematic diagram of checking product and traceability information in an embodiment of the present invention;
[0045] Figure 6 This is a diagram showing the effect of the QR code after it is hidden in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0047] Example 1:
[0048] like Figure 1-Figure 3As shown, this embodiment discloses a method for anti-counterfeiting and anti-channelling by using invisible coding to achieve multi-code association, including the following steps:
[0049] S1: Generate a composite image containing a latent code on the product identification carrier. The latent code is fused with the original image through an optical encryption algorithm and requires special equipment to read;
[0050] S2: Generate a dynamic correspondence between the security code and the latent code, and establish a dynamic association rule between the validity status of the security code and the physical integrity of the latent code;
[0051] S3: Dynamically bind the hidden code with the product code, anti-counterfeiting code, and order / SKU data during product shipment to form a multi-dimensional relationship.
[0052] S4: Encrypt the associated data and write it into the blockchain network. The main chain stores the data summary, and the side chain stores the encrypted details.
[0053] S5: The latent code is read by the verification device to verify the consistency of multiple codes and regional compliance. If there is any channel diversion or tampering, a graded alarm is triggered.
[0054] In step S1, the latent code is embedded in the verification area of the product barcode 69 or the reserved blank space; the composite image is realized by offset printing, gravure printing or laser micro-engraving technology. The latent code is invisible under visible light and can be identified under the infrared band.
[0055] In step S2, the characters at the designated position of the anti-counterfeiting code are used to generate the encryption key of the latent code. The encryption key of the latent code is generated as follows:
[0056] S21: extract the 3rd, 7th and 11th characters of the anti-counterfeiting code to generate an initial character sequence;
[0057] S22: Convert the character into an 8-bit binary value;
[0058] S23: Perform a circular shift operation on each binary value: the 3rd character is circularly shifted to the left by 3 bits, the 7th character is circularly shifted to the right by 2 bits, and the 11th character is circularly shifted to the left by 1 bit;
[0059] S24: Perform XOR and bit mask operations on the bit-shifted binary value to generate a 24-bit intermediate key;
[0060] S25: The intermediate key is expanded to a 128-bit encryption key through the key expansion mechanism of the SM4 national encryption algorithm.
[0061] The formula for generating the intermediate key in step S24 is:
[0062]
[0063] Among them: B′3, B′7, B′ 11 is the binary value after shifting, represents the bitwise exclusive OR operation, and || represents the binary concatenation operation.
[0064] In step S25, the key expansion satisfies: if the intermediate key is less than 128 bits, it is padded to 128 bits through cyclic splicing; and the final round key is generated by 32 rounds of nonlinear transformation using the SM4 algorithm.
[0065] In step S4, the main chain adopts the Hyperledger Fabric architecture, and the side chain adopts IPFS distributed storage.
[0066] The verification equipment in step S5 includes: an optical acquisition module: containing a near-infrared light source, a polarization filter and a CMOS sensor, used to extract latent codes; a data processing module: integrating an SM4 encryption unit and a blockchain light node verification unit; a response execution module: containing a multi-level alarm device and a work order generation interface; a human-computer interaction module: a touch screen, a voice unit and a data export interface.
[0067] The classified alert includes three levels of response:
[0068] Level 1 response, verification failed once: trigger the device's local buzzer and LED alarm;
[0069] Level 2 response, 3 consecutive failures: freeze the current product barcode and upload the abnormal event to the blockchain;
[0070] Level 3 response, regional mismatch: Generate a cross-selling work order and start the reverse tracing process.
[0071] It also includes a latent code regeneration mechanism: when the latent code is partially damaged, a temporary verification code is calculated by the edge node, with a validity period of T = 24h×(1-damage rate).
[0072] like Figure 4 As shown, when linking multiple codes, the hidden code ① is hidden within the 69 product codes. If violated, the product cannot circulate normally in the market. This provides a lever for administrative supervision, making it more difficult for violators to tamper with it, effectively ensuring that it is not impossible, but rather afraid, to violate it. Hidden code ① cannot be copied. Any duplication invalidates the underlying data, rendering it unreadable by authentication devices. The data correspondence between hidden code ① and the designated position of security code ② achieves dual-layer concealment and dynamic mapping, enabling the association of multiple codes for a single product (not limited to the two codes shown in the figure), significantly raising the bar for counterfeiting and facilitating inspections. Hidden code ① is also linked to security code ② and the shipping order ③ (i.e., product-related order and SKU information). This enables real-time database synchronization, establishing a digital product information repository and enabling rapid verification and querying between the front and back ends.
[0073] The following is an example of a specific case:
[0074] like Figure 5 As shown, the anti-counterfeiting and anti-channeling application of red wine products is used for illustration:
[0075] Product Name: GL Red Wine
[0076] Product code (69): 69329864092246
[0077] Production batch: 2024A1
[0078] Sales area: Hangzhou, Zhejiang Province
[0079] Dealer code: ZJ-A001
[0080] Step S1: Generate latent code and composite image:
[0081] Extract the last check digit 6 of the product code and generate the latent code 654 (the last digit is consistent with the check digit);
[0082] The anti-counterfeiting code is F123-7B8E-456A. Extract the 3rd, 7th, and 11th characters (3, B, 5) and convert them to ASCII code values (51, 66, 53). Mask value: 0xF0 (hexadecimal) corresponds to binary 11110000. Fixed value: 0xAA (hexadecimal) corresponds to binary 10101010.
[0083] Perform a bit shift operation on each character:
[0084] The third character 51 (binary 00110011) is circularly shifted left by 3 bits → 10011001;
[0085] The 7th character 66 (binary 01000010) is rotated right by 2 bits → 00010001;
[0086] The 11th character 53 (binary 00110101) is circularly shifted left by 1 bit → 01101010;
[0087] Generate a 24-bit intermediate key:
[0088]
[0089] A 128-bit encryption key is generated through SM4 key expansion and is used to encrypt the latent code 654.
[0090] Composite image printing:
[0091] The offset printing process is used to embed the hidden code into the product code verification area (blank space is reserved). Only the original product code is displayed under visible light, and the hidden code can be identified by infrared 850nm equipment.
[0092] Printing parameters: resolution 1200dpi, ink thickness ≤5μm.
[0093] Step S2: Dynamic binding of anti-counterfeiting code and latent code
[0094] Status association rules:
[0095] When the latent code damage rate is ≥30%, the anti-counterfeiting code will automatically become invalid;
[0096] The security code will update the key every 24 hours and the old key will be invalid.
[0097] Step S3: Outbound data binding
[0098] Binding data:
[0099] SKU: GL-REDWINE;
[0100] Order number: DD20240315001;
[0101] Geofence: Hangzhou (latitude and longitude range: 120.1°E-120.3°E, 30.2°N-30.4°N).
[0102] Generate a three-dimensional incidence matrix:
[0103] M[i,j,k]=SM3(SKU i ||Order number j ||Latent Coding k )
[0104] Step S4: Blockchain evidence
[0105] Main chain (Hyperledger Fabric): stores the Merkle Root of the association matrix (transaction ID: 0x1a3f...c89d);
[0106] Sidechain (IPFS): Order details data is encrypted and stored, and the sharding key is distributed to 5 nodes using the Shamir secret sharing algorithm.
[0107] Step S5: Market Audit and Response
[0108] Verification device (handheld terminal):
[0109] A near-infrared light source (850nm) scans the product code and extracts the latent code 654;
[0110] Blockchain light nodes verify the consistency of associated data;
[0111] If the sales location is detected as Shanghai, a level 3 alarm will be triggered and a cross-selling work order will be generated (work order number: GD2024031501).
[0112] Response result:
[0113] The local LED light flashes red and the buzzer sounds an alarm;
[0114] Dealer account ZJ-A001 has been frozen and needs to be reactivated.
[0115] The technical solution of this embodiment can be further applied in copyright protection of printed publications, commodity anti-counterfeiting and anti-channelling applications, and asset and production process management applications.
[0116] like Figure 6 As shown, the 69 barcode on the anti-counterfeiting label contains hidden digital characters, and the variable QR code (anti-counterfeiting code) contains a variable hidden number. The hidden number is the same as the last digit of the barcode code, making the two related. The hidden code is dynamically linked to the last digit of the product code. Copies fail the last digit verification and are therefore invalid. The hidden code is invisible to the naked eye, but can be identified and viewed using an identification device.
[0117] Example 2:
[0118] The anti-counterfeiting and anti-channelling system of the present invention using invisible coding to achieve multi-code association includes:
[0119] Coding device: Integrates optical encryption module and printing control unit to generate composite images;
[0120] Data binding server: includes a key generation unit and a dynamic association module, which is used to execute the encryption key generation algorithm and perform three-dimensional binding of the latent code with the product code and anti-counterfeiting code;
[0121] Blockchain evidence storage cluster module: includes main chain nodes and side chain storage nodes, used to store associated data;
[0122] Verification terminal: A handheld device equipped with an infrared sensor and blockchain verification module, used to read and verify latent codes, and check multi-code consistency and regional compliance;
[0123] Audit management platform: A visual dashboard that displays real-time channel diversion alerts and traceability paths, used to trigger graded alerts when channel diversion or tampering occurs.
[0124] The above description is only a preferred specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any technician familiar with the technical field, within the technical scope disclosed by the present invention, who makes equivalent replacements or changes based on the technical solution and inventive concept of the present invention, should be covered by the scope of protection of the present invention.
Claims
1. A method for anti-counterfeiting and anti-channelling by using invisible coding to achieve multi-code association, characterized in that: The steps include: S1: Generate a composite image containing a latent code on the product identification carrier. The latent code is fused with the original image through an optical encryption algorithm and requires special equipment to read; S2: Generate a dynamic correspondence between the security code and the latent code, and establish a dynamic association rule between the validity status of the security code and the physical integrity of the latent code; S3: Dynamically bind the hidden code with the product code, anti-counterfeiting code, and order / SKU data during product shipment to form a multi-dimensional relationship. S4: Encrypt the associated data and write it into the blockchain network. The main chain stores the data summary, and the side chain stores the encrypted details. S5: The latent code is read by the verification device to verify the consistency of multiple codes and regional compliance. If there is any channel diversion or tampering, a graded alarm is triggered.
2. The method for anti-counterfeiting and anti-channelling by using invisible coding to achieve multi-code association according to claim 1, characterized in that: In step S1, the latent code is embedded in the verification area of the product barcode 69 or the reserved blank space; the composite image is realized by offset printing, gravure printing or laser micro-engraving technology, and the latent code is invisible under visible light but recognizable under infrared band.
3. The method for preventing counterfeiting and counterfeiting by using invisible coding to achieve multi-code association according to claim 1, characterized in that: In step S2, the characters at the designated position of the anti-counterfeiting code are used to generate the encryption key of the latent code. The encryption key of the latent code is generated as follows: S21: extract the 3rd, 7th and 11th characters of the anti-counterfeiting code to generate an initial character sequence; S22: Convert the character into an 8-bit binary value; S23: Perform a circular shift operation on each binary value: the 3rd character is circularly shifted to the left by 3 bits, the 7th character is circularly shifted to the right by 2 bits, and the 11th character is circularly shifted to the left by 1 bit; S24: Perform XOR and bit mask operations on the bit-shifted binary value to generate a 24-bit intermediate key; S25: The intermediate key is expanded to a 128-bit encryption key through the key expansion mechanism of the SM4 national encryption algorithm.
4. The method for preventing counterfeiting and counterfeiting by using invisible coding to achieve multi-code association according to claim 3, characterized in that: The generation formula of the intermediate key in step S24 is: Among them: B′3, B′7, B′ 11 is the binary value after shifting, represents the bitwise XOR operation, || represents the binary concatenation operation; & represents the bitwise AND operation; 0xF0 represents the mask value; 0xAA represents the fixed value; The key expansion in step S25 satisfies: if the intermediate key is less than 128 bits, it is padded to 128 bits by cyclic splicing; and the final round key is generated by 32 rounds of nonlinear transformation using the SM4 algorithm.
5. The method for preventing counterfeiting and counterfeiting by using invisible coding to achieve multi-code association according to claim 1, characterized in that: In step S4, the main chain adopts the Hyperledger Fabric architecture, and the side chain adopts IPFS distributed storage.
6. The method for preventing counterfeiting and counterfeiting by using invisible coding to achieve multi-code association according to claim 1, characterized in that: The verification equipment in step S5 includes: an optical acquisition module: containing a near-infrared light source, a polarization filter and a CMOS sensor, for extracting latent codes; a data processing module: integrating an SM4 encryption unit and a blockchain light node verification unit; a response execution module: including a multi-level alarm device and a work order generation interface; a human-computer interaction module: a touch screen, a voice unit and a data export interface.
7. The method for preventing counterfeiting and counterfeiting by using invisible coding to achieve multi-code association according to claim 1, characterized in that: The hierarchical alert includes three levels of response: Level 1 response, verification failed once: trigger the device's local buzzer and LED alarm; Level 2 response, 3 consecutive failures: freeze the current product barcode and upload the abnormal event to the blockchain; Level 3 response, regional mismatch: Generate a cross-selling work order and start the reverse tracing process.
8. The method for preventing counterfeiting and counterfeiting by using invisible coding to achieve multi-code association according to claim 1, characterized in that: It also includes a latent code regeneration mechanism: when the latent code is partially damaged, a temporary verification code is calculated by the edge node, with a validity period of T = 24h×(1-damage rate).
9. The method for preventing counterfeiting and counterfeiting by using invisible coding to achieve multi-code association according to claim 1, characterized in that: The latent code is dynamically associated with the last digit of the product code, and the duplicate is invalid due to the failure of the last digit verification.
10. A system for preventing counterfeiting and counterfeiting by using invisible coding to associate multiple codes, applied to the method for preventing counterfeiting and counterfeiting by using invisible coding to associate multiple codes as claimed in any one of claims 1 to 9, characterized in that: The system comprises: Coding device: Integrates optical encryption module and printing control unit to generate composite images; Data binding server: includes a key generation unit and a dynamic association module, which is used to execute the encryption key generation algorithm and perform three-dimensional binding of the latent code with the product code and anti-counterfeiting code; Blockchain evidence storage cluster module: includes main chain nodes and side chain storage nodes, used to store associated data; Verification terminal: A handheld device equipped with an infrared sensor and blockchain verification module, used to read and verify latent codes, and check multi-code consistency and regional compliance; Audit management platform: A visual dashboard that displays real-time channel diversion alerts and traceability paths, used to trigger graded alerts when channel diversion or tampering occurs.
Citation Information
Patent Citations
Anti-counterfeiting traceability identification system and method based on plain and secret code association
CN112208860A
Cited By
Anti-counterfeiting tracing method and system based on font steganography coding and enterprise production center data center
CN121544276A
A font-based steganographic encoding anti-counterfeiting tracing method and system and enterprise production center data platform
CN121544276B