Anti-counterfeiting code generation method, system and device based on multiple label carriers and medium

By matching the label carrier type according to the product cost level and generating a composite encryption seed, the length and encryption strength of the anti-counterfeiting code are dynamically adjusted, solving the problem that the label carrier type cannot adapt to security requirements in the existing technology, and improving the security and economy of the anti-counterfeiting code.

CN120509428BActive Publication Date: 2026-02-24FOSHAN YUHE TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510568300.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2026-02-24
Estimated Expiration
2045-04-30

AI Technical Summary

Technical Problem

Existing anti-counterfeiting code generation methods cannot dynamically adjust data capacity and security strength according to the type of label carrier, resulting in the inefficient use of high-cost label carriers or insufficient security level of low-cost carriers, making it difficult to adapt to the diverse security needs of different industries.

Method used

The label carrier type is matched according to the product cost level, and a composite encryption seed is generated by combining the unique identifier of the coding device. The length of the anti-counterfeiting code is dynamically adjusted, and the final anti-counterfeiting code is generated through multiple rounds of encryption and stored in the cloud blockchain node to achieve traceability and security.

Benefits of technology

This achieves a match between the length of the anti-counterfeiting code and security requirements, improves the security and adaptability of the anti-counterfeiting code, reduces anti-counterfeiting costs, and enhances the flexibility and economy of the anti-counterfeiting system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120509428B_ABST
    Figure CN120509428B_ABST
Patent Text Reader

Abstract

The application relates to a method, system, device and medium for generating an anti-fake code based on various label carriers, and relates to the technical field of anti-fake code generation. The method comprises the following steps: generating a composite encryption seed according to the cost level of a product, the unique identification of a code writing device, and dynamically adjusting the initial length of the anti-fake code based on the data capacity limit of the label carrier to generate a basic anti-fake code sequence; determining an encryption algorithm combination and an encryption round according to the security threshold corresponding to the product cost level, performing multi-round encryption on the basic anti-fake code sequence to generate a final anti-fake code, writing the final anti-fake code into a matching label carrier, and storing the encryption seed, the encryption round and the industry type parameter in a cloud block chain node in association. The application can flexibly set the length of the anti-fake code according to the security requirements and information storage capacity of different products, and improve the security and adaptability of the anti-fake code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of anti-counterfeiting code generation technology, and in particular to anti-counterfeiting code generation methods, systems, devices and media based on various label carriers. Background Technology

[0002] In today's market environment, counterfeit and substandard products abound, severely damaging consumer rights and corporate brand image. The development of anti-counterfeiting technology plays a crucial role in maintaining market order, protecting consumer rights, and enhancing corporate brand image. Currently, various anti-counterfeiting technologies have emerged in the market, ensuring product uniqueness and authenticity through different methods, providing a certain level of security for consumers and businesses.

[0003] To address anti-counterfeiting requirements, existing technologies typically employ static algorithms to generate fixed-length QR code anti-counterfeiting codes and directly embed plaintext information into the label. While this system reduces label printing costs, the fixed anti-counterfeiting code length and encryption rules prevent dynamic adjustment of data capacity and security strength based on the label carrier type. Furthermore, the uniform encryption strength fails to meet the security needs of different industries, leading to inefficient use of high-cost label carriers or insufficient security levels on low-cost carriers.

[0004] However, existing anti-counterfeiting code generation methods have significant drawbacks: the anti-counterfeiting code length and encryption rules are fixed, making it impossible to dynamically adjust data capacity and security strength according to the label carrier type. Furthermore, the standardized encryption strength is insufficient to meet the diverse security needs of different industries, leading to resource waste on high-cost label carriers or inadequate security levels on low-cost carriers. This makes the anti-counterfeiting system inflexible in the face of a complex and ever-changing market environment, failing to meet the anti-counterfeiting requirements of different types of products. Summary of the Invention

[0005] The purpose of this application is to provide a method for generating anti-counterfeiting codes based on multiple label carriers, which can flexibly set the length of anti-counterfeiting codes according to the security requirements and information storage volume of different products, thereby improving the security and adaptability of anti-counterfeiting codes.

[0006] Firstly, this application provides a method for generating anti-counterfeiting codes based on multiple label carriers, employing the following technical solution:

[0007] A method for generating anti-counterfeiting codes based on multiple label carriers, comprising:

[0008] Based on the product's cost level, the label carrier type is matched from a preset carrier type database. The cost level is calculated by combining the product's market unit price and the cost of counterfeiting.

[0009] Obtain the unique identifier of the registration device, which includes the industry type parameter bound during the registration of the registration device, the device serial number, the registration time, and the geographic area code;

[0010] By combining the cost level and the unique identifier, a cryptographic seed is generated, resulting in a composite cryptographic seed.

[0011] Based on the data capacity limitations of the tag carrier, the initial length of the anti-counterfeiting code is dynamically adjusted to generate a basic anti-counterfeiting code sequence;

[0012] Based on the security threshold corresponding to the product cost level, determine the combination of encryption algorithms and the number of encryption rounds, and perform multiple rounds of encryption on the basic anti-counterfeiting code sequence to generate the final anti-counterfeiting code;

[0013] The anti-counterfeiting code is written into the matching label carrier and associated with the encrypted seed, encrypted round, and industry type parameters stored in the cloud blockchain node.

[0014] By adopting the above technical solution, the appropriate label carrier type is matched according to the product's cost level, and the initial length of the anti-counterfeiting code is dynamically adjusted based on the data capacity limit of the label carrier. This balances the production cost of the anti-counterfeiting code with the security requirements for protecting the product. At the same time, appropriate encryption algorithm combinations and encryption rounds are selected according to the security threshold corresponding to the product's cost level, effectively improving the security strength of the anti-counterfeiting code. Finally, the generated anti-counterfeiting code is written into the label carrier that matches the security requirements, and the relevant encrypted information is stored in the cloud blockchain node, thereby achieving full traceability and security assurance of the anti-counterfeiting code.

[0015] In a preferred embodiment, this application can be further configured as follows: the step of dynamically adjusting the initial length of the anti-counterfeiting code based on the data capacity limitation of the tag carrier and generating a basic anti-counterfeiting code sequence includes:

[0016] The initial code length is set to L0 based on the maximum data capacity of the tag carrier;

[0017] The final code length is obtained by calculating the formula L = L0 + k×S, where S is the counterfeit case detection rate and k is the capacity expansion coefficient.

[0018] When L exceeds the carrier capacity, a data compression algorithm is activated to compress the encrypted result.

[0019] By adopting the above technical solution, the security and flexibility of the generated anti-counterfeiting code are enhanced by introducing the counterfeit case detection rate and capacity expansion coefficient to calculate the final code length. When the code length exceeds the carrier capacity, the data compression algorithm is activated, which effectively solves the data overflow problem and realizes dynamic code length adjustment based on the data capacity of the label carrier, so that the anti-counterfeiting code length matches the security requirements.

[0020] In a preferred embodiment, this application can be further configured as follows: the step of obtaining the unique identifier of the registration device, wherein the unique identifier includes the industry type parameter bound during registration of the registration device, the device serial number, the registration time, and the geographic region code, includes:

[0021] The serial number of the registered device is concatenated with the industry type parameter to generate a string, and the string is hashed to generate the device identification code.

[0022] The device identification code, registration time, and geographic region code are embedded in binary form at the end of the hash result to generate a unique identifier.

[0023] By adopting the above technical solution, the serial number of the registered device is concatenated with the industry type parameter to generate a string and then hashed to generate a device identification code, making the identifier unique and tamper-proof. At the same time, the device identification code, registration time and geographical area code are combined to generate a unique identifier, which further improves the information capacity of the identifier and facilitates differentiated management according to different geographical areas.

[0024] In a preferred embodiment, this application can be further configured as follows: the step of matching label carrier types from a preset carrier type database based on the product's cost level, wherein the cost level is calculated by combining the product's market unit price and the cost of counterfeiting, includes:

[0025] The product cost levels are set from high to low to several levels, and the value range for each cost level is set.

[0026] Based on the level of technical complexity of product counterfeiting and the regional risk level of the target sales area, the counterfeiting risk parameters are evaluated by integrating them according to preset weights, and the counterfeiting cost value of the counterfeiting risk parameters is obtained by matching.

[0027] The cost level of the product is determined by matching the product's market price in the target sales region to the cost of counterfeiting.

[0028] By adopting the above technical solution, product cost levels are divided into several levels and value ranges are set. The counterfeiting risk parameters are assessed in conjunction with the technical complexity level and regional risk level of product counterfeiting, and the counterfeiting cost value is calculated accordingly, further improving the accuracy of cost level assessment. Then, the cost level is determined by multiplying the product's market unit price by the counterfeiting cost value, thereby providing suitable label carrier types for products with different security requirements. This effectively improves the flexibility and security of the anti-counterfeiting system and achieves the effect of accurately matching label carrier types according to product cost level and counterfeiting risk parameters.

[0029] In a preferred embodiment, this application can be further configured as follows: the step of evaluating counterfeiting risk parameters according to preset weights based on the technical complexity level of product counterfeiting and the regional risk level of the target sales area, and matching and obtaining the counterfeiting cost value of the counterfeiting risk parameters, includes:

[0030] The level of technical complexity is determined based on the production cost of the product.

[0031] The regional risk level is determined based on the rate of counterfeit cases detected in the target sales region of the product.

[0032] By adopting the above technical solution, the technical complexity level is determined based on the product's production cost, and the regional risk level is determined by combining the counterfeit case investigation rate in the target sales area. This not only enables a refined assessment of product counterfeit risk parameters and improves the accuracy of risk assessment, but also provides a scientific basis for subsequent matching of counterfeit cost values, thereby improving the pertinence and effectiveness of the anti-counterfeiting code generation method.

[0033] In a preferred embodiment, this application may be further configured such that, prior to the step of matching label carrier types from a preset carrier type database based on the product's cost level, wherein the cost level is calculated by combining the product's market unit price and the cost of counterfeiting, the application further includes:

[0034] The product cost levels are set from high to low as Level 1, Level 2, Level 3, and Level 4, and the value range for each cost level is set.

[0035] Set the NFC chip as the tag carrier matching the first-level cost, set the RFID chip as the tag carrier matching the second-level cost, and set the QR code as the tag carrier matching the third-level cost.

[0036] By adopting the above technical solution, the value range of each cost level is clearly defined, and suitable label carrier types are matched for products of different cost levels. This not only ensures that the anti-counterfeiting needs of high-cost products are fully met, but also effectively reduces the anti-counterfeiting costs of low-cost products, improves the economy and applicability of the overall anti-counterfeiting system, and achieves refined label carrier matching for products of different cost levels.

[0037] In a preferred embodiment, this application may be further configured as follows: after the step of writing the anti-counterfeiting code into a matching label carrier and associating and storing the encryption seed, encryption round, and industry type parameters to a cloud blockchain node, it further includes:

[0038] In response to the anti-counterfeiting code verification operation, the anti-counterfeiting code is destroyed, and only the encrypted log in the cloud is retained.

[0039] By adopting the above technical solution, the anti-counterfeiting code is destroyed after verification, and only the cloud-encrypted log is retained, so that the anti-counterfeiting code can only be used once, minimizing the security risks caused by repeated verification. At the same time, by using cloud blockchain nodes to store relevant information, the traceability and immutability of anti-counterfeiting information can be achieved.

[0040] Secondly, this application provides an anti-counterfeiting code generation system based on multiple label carriers, employing the following technical solution:

[0041] A system for generating anti-counterfeiting codes based on multiple label carriers, comprising:

[0042] Carrier matching module: used to match the label carrier type from a preset carrier type database according to the product's cost level, wherein the cost level is calculated by combining the product's market unit price and the cost of counterfeiting;

[0043] Identification acquisition module: used to obtain the unique identifier of the registration device, which includes the industry type parameter bound when the registration device is registered, the device serial number, the registration time and the geographical area code;

[0044] Seed generation module: used to combine the cost level and unique identifier to generate encrypted seeds, and generate composite encrypted seeds;

[0045] Capacity adaptation module: used to dynamically adjust the initial length of the anti-counterfeiting code based on the data capacity limit of the tag carrier, and generate a basic anti-counterfeiting code sequence;

[0046] Multi-level encryption module: used to determine the combination of encryption algorithms and encryption rounds according to the security threshold corresponding to the product cost level, and to perform multiple rounds of encryption on the basic anti-counterfeiting code sequence to generate the final anti-counterfeiting code;

[0047] Anti-counterfeiting code writing module: used to write the anti-counterfeiting code into the matching label carrier and associate and store the encryption seed, encryption round and industry type parameters to the cloud blockchain node.

[0048] Thirdly, this application provides an electronic device that adopts the following technical solution:

[0049] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described method for generating anti-counterfeiting codes based on multiple tag carriers.

[0050] Fourthly, this application provides a computer storage medium, as follows:

[0051] A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described method for generating anti-counterfeiting codes based on multiple label carriers.

[0052] In summary, this application has the following beneficial technical effects:

[0053] This application improves the security and adaptability of anti-counterfeiting code generation by matching the label carrier type according to the product's cost level and combining it with the unique identifier of the coding device to generate a composite encryption seed. Furthermore, it effectively solves the problem of fixed anti-counterfeiting code length and encryption strength by dynamically adjusting the initial length of the anti-counterfeiting code to adapt to the data capacity limitations of different label carriers and determining the encryption algorithm combination and encryption rounds based on the security threshold. Attached Figure Description

[0054] Figure 1 This is a flowchart of an anti-counterfeiting code generation method based on multiple label carriers in one embodiment of this application.

[0055] Figure 2 This is a flowchart of a sub-step of step S4 in one embodiment of this application.

[0056] Figure 3 This is a flowchart of a sub-step of step S2 in one embodiment of this application.

[0057] Figure 4 This is a flowchart of a sub-step of step S1 in one embodiment of this application.

[0058] Figure 5 This is a flowchart of a sub-step of step S11 in one embodiment of this application.

[0059] Figure 6 This is a flowchart of the steps added before step S1 in one embodiment of this application.

[0060] Figure 7 This is a flowchart of the steps added after step S6 in one embodiment of this application.

[0061] Figure 8 This is a schematic diagram of the structure of an anti-counterfeiting code generation system based on multiple label carriers, according to one embodiment of this application.

[0062] Figure 9 This is a schematic block diagram of an electronic device in one embodiment of this application.

[0063] Attached reference numerals: 1. Carrier matching module; 2. Identifier acquisition module; 3. Seed generation module; 4. Capacity adaptation module; 5. Multi-level encryption module; 6. Anti-counterfeiting code writing module. Detailed Implementation

[0064] The following is in conjunction with the appendix Figure 1-9 This application will be described in further detail.

[0065] It should be noted that all actions involving the acquisition of data or information in this application are carried out in accordance with the relevant data protection laws and policies of the country where the application is located, and with the authorization of the relevant users.

[0066] refer to Figure 1 A method for generating anti-counterfeiting codes based on multiple label carriers, specifically including:

[0067] S1. Based on the product's cost level, match the label carrier type from the preset carrier type database. The cost level is calculated by combining the product's market unit price and the cost of counterfeiting.

[0068] Specifically, generally speaking, the higher the production cost of a product, the greater the loss for consumers who purchase it when it is counterfeited. Therefore, it is necessary to improve the anti-counterfeiting capabilities to determine whether a product is legitimate and authentic, which in turn requires equipping higher-cost products with more secure anti-counterfeiting codes. However, the production cost of anti-counterfeiting codes must also be considered, including the purchase or production cost of the label carrier. Similarly, generally, the higher the security level of the label carrier, the higher the purchase or production cost. Therefore, selecting the label carrier based on the product's production cost achieves a balance between the production cost of anti-counterfeiting codes and the security requirements for protecting the product.

[0069] S2. Obtain the unique identifier of the registration device. The unique identifier includes the industry type parameter bound when the registration device is registered, the device serial number, the registration time, and the geographic area code.

[0070] Specifically, in this embodiment, the industry type parameter can be set by the user in the cloud, and the geocoding is set to the GB / T2260 administrative division code. The industry type parameter, registration time, geocoding of the place of production, and device serial number are combined to form a unique device identifier, thus overcoming the limitation that a single device is easily counterfeited. Furthermore, the industry parameter restricts the device's usage scenarios, while the geocoding enables regional traceability, strongly binding the anti-counterfeiting code to the source of production. Adding precise registration time further increases the difficulty for other counterfeit registration devices to be copied across industries or regions.

[0071] S3. Combine cost level and unique identifier to generate encryption seed, and generate composite encryption seed.

[0072] Specifically, by combining product cost levels with multi-dimensional equipment identifiers, an irreversible encrypted seed is generated. The seed value is dynamically reconstructed and recorded in the cloud as the cost level changes, thus improving the security of the anti-counterfeiting code.

[0073] S4. Based on the data capacity limitation of the tag carrier, dynamically adjust the initial length of the anti-counterfeiting code to generate a basic anti-counterfeiting code sequence.

[0074] Specifically, the length of the anti-counterfeiting code can be flexibly set according to the security requirements of different products and the information storage capacity of the label carrier, thereby improving the security and adaptability of the anti-counterfeiting code.

[0075] S5. Based on the security threshold corresponding to the product cost level, determine the combination of encryption algorithms and the number of encryption rounds, perform multiple rounds of encryption on the basic anti-counterfeiting code sequence, and generate the final anti-counterfeiting code.

[0076] Specifically, the higher the cost level, the higher the security threshold. Furthermore, the number of encryption rounds is positively correlated with the security threshold of the cost level; that is, a higher cost level requires a higher security threshold, necessitating the selection of more complex encryption algorithm combinations and increasing the number of encryption rounds. By dynamically adjusting the security threshold corresponding to the product's cost level, the anti-counterfeiting code's resistance to brute-force attacks on high-value products is enhanced, while simultaneously controlling the production cost of anti-counterfeiting codes for low-value products and improving production efficiency.

[0077] S6. Write the anti-counterfeiting code into the matching label carrier and associate it with the encrypted seed, encrypted round and industry type parameters to the cloud blockchain node.

[0078] Specifically, the generated anti-counterfeiting code is written into a label carrier that matches the security requirements, and the relevant encrypted information is stored in a cloud blockchain node, thereby improving the security of the anti-counterfeiting code and enabling traceability of the anti-counterfeiting code during the coding process.

[0079] refer to Figure 2 Furthermore, in one embodiment, step S4 is refined into the following sub-steps:

[0080] S40. Set the initial code length to L0 according to the maximum data capacity of the tag carrier.

[0081] Specifically, the initial code length L0 is determined by presetting the maximum data capacity of the tag carrier, establishing a basic length benchmark, minimizing the risk of data overflow due to the physical limitations of the tag carrier, making the anti-counterfeiting code adaptable to the carrier's storage space, and providing a security benchmark for subsequent dynamic expansion.

[0082] S41. The final code length is obtained by calculating L = L0 + k × S, where S is the counterfeit case detection rate and k is the capacity expansion coefficient.

[0083] Specifically, the code length is dynamically calculated based on the counterfeiting risk across the entire sales region, and quantified using the counterfeiting case detection rate. The counterfeiting case detection rate S = (Total sales volume in the target region / Number of counterfeit products) * 100%. Then, the code length is elastically scaled using a capacity expansion coefficient k, and the result of the k × S calculation is obtained by rounding up to a non-negative integer value.

[0084] Furthermore, after obtaining the increased code length, the code length is matched with the preset increment code in the cloud and added to the encryption algorithm for encryption.

[0085] S42. When L exceeds the carrier capacity, the data compression algorithm is activated to compress the encryption result.

[0086] Specifically, when the code length exceeds the capacity of the tag carrier, a data compression algorithm is activated to compress the code and solve the problem of data overflow. This enables dynamic code length adjustment based on the data capacity of the tag carrier, ensuring that the anti-counterfeiting code length matches the security requirements.

[0087] In addition, refer to Figure 3 Furthermore, in one embodiment, step S2 is refined into the following sub-steps:

[0088] S20. Concatenate the serial number of the registered device with the industry type parameter to generate a string, perform a hash operation on the string, and generate the device identification code.

[0089] Specifically, the serial number of the registered device is concatenated with the industry type parameter to generate a string, and then a hash operation is performed to generate a device identification code, ensuring that the identifier of the registered device is unique and tamper-proof. The industry type parameter is set by the user and stored in the cloud, and each industry type parameter is unique.

[0090] S21. Embed the device identification code, registration time, and geographic region code in binary form at the end of the hash result to generate a unique identifier.

[0091] Specifically, the unique identifier generated by combining the device identification code, registration time, and geographic region code can facilitate differentiated management based on different geographic regions, while also increasing the information capacity of the identifier and making the composition of the anti-counterfeiting code more complex, thereby improving the security of the anti-counterfeiting code.

[0092] In addition, refer to Figure 4 Furthermore, in one embodiment, step S1 is refined into the following sub-steps:

[0093] S10. Set the product cost level into several levels from high to low, and set the value range for each cost level.

[0094] Specifically, product cost levels are divided into several tiers to determine security thresholds. Higher cost levels require higher security thresholds, necessitating more complex encryption algorithms and increasing the number of encryption rounds. The range of cost level values ​​is determined based on the production costs of several products recorded in the cloud.

[0095] S11. Based on the level of technical complexity of product counterfeiting and the regional risk level of the target sales area, evaluate the counterfeiting risk parameters according to preset weights, and match and obtain the counterfeiting cost value of the counterfeiting risk parameters.

[0096] Specifically, the more complex the product's technology, the greater the investment cost and the higher the level of technological complexity. Conversely, a higher regional risk in the target sales area indicates a higher risk of the product being counterfeited within that area. By combining the technological complexity level and regional risk level of product counterfeiting to assess counterfeiting risk parameters and calculating the counterfeiting cost value accordingly, the accuracy of cost level assessment is further improved. The preset weights are set by the user; in this embodiment, the weight for technological complexity level is 0.7, and the weight for regional risk level is 0.3.

[0097] S12. Based on the product of the market unit price of the product in the target sales area and the counterfeit cost value, match and obtain the cost level of the product.

[0098] Specifically, the market price varies in each sales region, and the losses incurred by consumers after purchasing counterfeit products also differ. By calculating the product of the market price in the target sales region and the cost of counterfeiting, and combining this with transaction data from both buyers and sellers, a more accurate assessment of the product's cost level can be made. The product value is then matched to the range of values ​​for each cost level. The market price of the product in the target sales region is obtained through sales data uploaded to the cloud by distributors at each level in the target sales region.

[0099] Therefore, determining the cost level based on the product of the product's market price and the cost of counterfeiting provides suitable label carrier types for products with different security requirements, improving the flexibility and security of the anti-counterfeiting system.

[0100] In addition, refer to Figure 5 Furthermore, in one embodiment, step S11 is refined into the following sub-steps:

[0101] S110. Determine the level of technical complexity based on the product's production cost.

[0102] Specifically, product production costs fluctuate dynamically based on real-time market changes. Therefore, the level of technological complexity also changes at any time, resulting in variations in the anti-counterfeiting codes generated at different times, and making the generation of anti-counterfeiting codes more diverse. Furthermore, the higher the product's production cost, the higher the level of technological complexity, and the larger the corresponding quantitative value.

[0103] S111. Determine the regional risk level based on the rate of investigation and handling of counterfeit cases in the target sales region of the product.

[0104] Specifically, the regional risk level is determined based on the counterfeit case detection rate in the target sales region. The counterfeit case detection rate is calculated as: (Total sales volume in the target region / Number of counterfeit products) * 100%. Counterfeit cases are collected through various means, including consumer complaints and reports received by scanning the product's anti-counterfeiting code within each sales region. Furthermore, the higher the counterfeit case detection rate, the greater the regional risk level and the higher the corresponding quantitative value.

[0105] In addition, refer to Figure 6 Furthermore, in one embodiment, steps S13 and S14 are added before step S1:

[0106] S13. Set the product cost levels from high to low as Level 1, Level 2, Level 3, and Level 4, and set the value range for each cost level.

[0107] Specifically, by obtaining the value range for each cost level and then matching different cost label carrier types to products at different cost levels, the anti-counterfeiting needs of high-cost products can be fully met while reducing the anti-counterfeiting costs of low-cost products.

[0108] S14. Set the NFC chip as a tag carrier matching the first-level cost level, set the RFID chip as a tag carrier matching the second-level cost level, and set the QR code as a tag carrier matching the third-level cost level.

[0109] Specifically, NFC chips configured for Level 1 cost have a storage capacity of 4KB-64KB, supporting multi-layered encrypted data, digital certificates, and traceability information. They support hardware-level encryption (such as SE secure elements), two-way authentication, and dynamic data updates, making them suitable for high-value products such as luxury goods and precision instruments, and requiring protection against professional-level counterfeiting attacks. RFID chips configured for Level 2 cost have a storage capacity of 96 bits-2KB, capable of storing basic encrypted data and batch information. Through static data encryption and low-frequency passive communication, they can resist common copying attacks, making them suitable for mid-range products such as home appliances and branded apparel, requiring a balance between cost and anti-counterfeiting requirements. QR codes configured for Level 3 cost have a storage capacity of tens to hundreds of bytes, suitable for storing short encrypted strings. They rely on visual anti-counterfeiting (holographic layers) and algorithm encryption, but are vulnerable to mass copying attacks, making them suitable for low-priced products such as fast-moving consumer goods and daily necessities, meeting basic anti-counterfeiting requirements.

[0110] In addition, refer to Figure 7 Furthermore, in one embodiment, after step S6, step S60 is added:

[0111] S60: In response to the anti-counterfeiting code verification operation, the anti-counterfeiting code is destroyed, and only the encrypted log in the cloud is retained.

[0112] Specifically, the anti-counterfeiting code is destroyed in the cloud after being verified by the consumer, and only the encrypted cloud log is retained to show that the current anti-counterfeiting code has been verified. This ensures that the anti-counterfeiting code can only be used once, reducing the security risks caused by repeated verification.

[0113] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0114] This application also provides an anti-counterfeiting code generation system based on multiple label carriers, which corresponds one-to-one with the anti-counterfeiting code generation method based on multiple label carriers in the embodiments.

[0115] refer to Figure 8 A multi-label-based anti-counterfeiting code generation system includes: a carrier matching module 1, an identifier acquisition module 2, a seed generation module 3, a capacity adaptation module 4, a multi-level encryption module 5, and an anti-counterfeiting code writing module 6. Detailed descriptions of each functional module are as follows:

[0116] Carrier matching module 1: It is used to match the label carrier type from the preset carrier type database according to the product's cost level. The cost level is calculated by combining the product's market unit price and the cost of counterfeiting.

[0117] Identification Acquisition Module 2: Used to obtain the unique identifier of the registration device. The unique identifier includes the industry type parameter bound when the registration device is registered, the device serial number, the registration time, and the geographical area code.

[0118] Seed generation module 3: Used to generate encrypted seeds by combining cost level and unique identifier, and to generate composite encrypted seeds.

[0119] Capacity adaptation module 4: Used to dynamically adjust the initial length of the anti-counterfeiting code based on the data capacity limit of the tag carrier, and generate a basic anti-counterfeiting code sequence.

[0120] Multi-level encryption module 5: Used to determine the combination of encryption algorithms and encryption rounds based on the security threshold corresponding to the product cost level, and to perform multiple rounds of encryption on the basic anti-counterfeiting code sequence to generate the final anti-counterfeiting code.

[0121] Anti-counterfeiting code writing module 6: Used to write the anti-counterfeiting code to the matching label carrier and associate the encrypted seed, encrypted round and industry type parameters to the cloud blockchain node.

[0122] The carrier matching module 1 matches the label carrier type from a preset database based on the product's cost level, calculates the cost level by combining the product's market unit price and counterfeiting costs, ensuring that the label carrier matches the product's value and minimizing the problem of inefficient use of high-cost labels or insufficient security of low-cost labels; the identification acquisition module 2 obtains the unique identifier of the coding device, enhancing the traceability of the anti-counterfeiting code generation process and the device's identity authentication capability; the seed generation module 3 combines the cost level and unique identifier to generate an encrypted seed, creating a composite encrypted seed, improving the basic security of anti-counterfeiting code generation, and providing stronger randomness and unpredictability for subsequent encryption processes; the capacity adaptation module 4 is based on the label... The data capacity limit of the carrier dynamically adjusts the initial length of the anti-counterfeiting code to generate a basic anti-counterfeiting code sequence, enabling optimal storage of the anti-counterfeiting code in label carriers of different capacities while meeting security and data integrity requirements. The multi-level encryption module 5 determines the encryption algorithm combination and encryption rounds based on the security threshold corresponding to the product cost level, performing multiple rounds of encryption on the basic anti-counterfeiting code sequence to generate the final anti-counterfeiting code, achieving multi-layered security protection and increasing the difficulty of cracking the anti-counterfeiting code. The anti-counterfeiting code writing module 6 writes the anti-counterfeiting code to the matching label carrier and associates and stores the encryption seed, encryption rounds, and industry type parameters to the cloud blockchain node, improving the immutability and verifiability of the anti-counterfeiting code information. Through the combination of these modules, when coding different products, the appropriate label carrier type can be flexibly selected according to the product's cost level and security requirements, effectively improving the security and adaptability of the anti-counterfeiting code.

[0123] Specific limitations regarding the anti-counterfeiting code generation system based on multiple label carriers can be found in the context of the limitations on the anti-counterfeiting code generation method based on multiple label carriers, and will not be repeated here. Each module in the aforementioned anti-counterfeiting code generation system based on multiple label carriers can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the electronic device, or stored in software in the memory of the electronic device, so that the processor can call and execute the corresponding operations of each module. In one embodiment, an electronic device is provided, which is a user terminal. (Reference) Figure 9 The electronic device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores detection data tables. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a method for generating anti-counterfeiting codes based on multiple tag carriers.

[0124] In one embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0125] S1. Based on the product's cost level, match the label carrier type from the preset carrier type database. The cost level is calculated by combining the product's market unit price and the cost of counterfeiting.

[0126] S2. Obtain the unique identifier of the registration device. The unique identifier includes the industry type parameter bound when the registration device is registered, the device serial number, the registration time, and the geographic area code.

[0127] S3. Combine cost level and unique identifier to generate encryption seed, and generate composite encryption seed.

[0128] S4. Based on the data capacity limitation of the tag carrier, dynamically adjust the initial length of the anti-counterfeiting code to generate a basic anti-counterfeiting code sequence.

[0129] S5. Based on the security threshold corresponding to the product cost level, determine the combination of encryption algorithms and the number of encryption rounds, perform multiple rounds of encryption on the basic anti-counterfeiting code sequence, and generate the final anti-counterfeiting code.

[0130] S6. Write the anti-counterfeiting code into the matching label carrier and associate it with the encrypted seed, encrypted round and industry type parameters to the cloud blockchain node.

[0131] In one embodiment, the sub-steps of step S4 refinement include:

[0132] S40. Set the initial code length to L0 according to the maximum data capacity of the tag carrier.

[0133] S41. The final code length is obtained by calculating L = L0 + k×S, where S is the counterfeit case detection rate and k is the capacity expansion coefficient.

[0134] S42. When L exceeds the carrier capacity, the data compression algorithm is activated to compress the encryption result.

[0135] In one embodiment, the sub-steps of step S2 refinement include:

[0136] S20. Concatenate the serial number of the registered device with the industry type parameter to generate a string, perform a hash operation on the string, and generate the device identification code.

[0137] S21. Embed the device identification code, registration time, and geographic region code in binary form at the end of the hash result to generate a unique identifier.

[0138] In one embodiment, the sub-steps of step S1 refinement include:

[0139] S10. Set the product cost level into several levels from high to low, and set the value range for each cost level.

[0140] S11. Based on the level of technical complexity of product counterfeiting and the regional risk level of the target sales area, evaluate the counterfeiting risk parameters according to preset weights, and match and obtain the counterfeiting cost value of the counterfeiting risk parameters.

[0141] S12. Based on the product of the market unit price of the product in the target sales area and the counterfeit cost value, match and obtain the cost level of the product.

[0142] In one embodiment, the refined sub-steps of step S11 include:

[0143] S110. Determine the level of technical complexity based on the product's production cost.

[0144] S111. Determine the regional risk level based on the rate of investigation and handling of counterfeit cases in the target sales region of the product.

[0145] In one embodiment, the additional step before step S1 includes:

[0146] S13. Set the product cost levels from high to low as Level 1, Level 2, Level 3, and Level 4, and set the value range for each cost level.

[0147] S14. Set the NFC chip as a tag carrier matching the first-level cost level, set the RFID chip as a tag carrier matching the second-level cost level, and set the QR code as a tag carrier matching the third-level cost level.

[0148] In one embodiment, the additional steps following step S6 include:

[0149] S60: In response to the anti-counterfeiting code verification operation, the anti-counterfeiting code is destroyed, and only the encrypted log in the cloud is retained.

[0150] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0151] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

Claims

1. A method for generating anti-counterfeiting codes based on multiple label carriers, characterized in that, include: Based on the product's cost level, the label carrier type is matched from a preset carrier type database. The cost level is calculated by combining the product's market unit price and the cost of counterfeiting. Obtain the unique identifier of the registration device, which includes the industry type parameter bound during the registration of the registration device, the device serial number, the registration time, and the geographic area code; A composite encryption seed is generated by combining the cost level and the unique identifier; Based on the data capacity limitation of the tag carrier, the initial length of the anti-counterfeiting code is dynamically adjusted to generate a basic anti-counterfeiting code sequence, including: setting the initial code length to L0 according to the maximum data capacity of the tag carrier; calculating the final code length using the formula L = L0 + k×S, where S is the counterfeiting case detection rate and k is the capacity expansion coefficient; when L exceeds the carrier capacity, a data compression algorithm is activated to compress the encryption result. Based on the security threshold corresponding to the product cost level, determine the combination of encryption algorithms and the number of encryption rounds, and perform multiple rounds of encryption on the basic anti-counterfeiting code sequence to generate the final anti-counterfeiting code; The anti-counterfeiting code is written into the matching label carrier and associated with the encrypted seed, encrypted round, and industry type parameters stored in the cloud blockchain node.

2. The method according to claim 1, characterized in that, The step of obtaining the unique identifier of the registration device, which includes the industry type parameter bound during device registration, device serial number, registration time, and geographic region code, includes: The serial number of the registered device is concatenated with the industry type parameter to generate a string, and the string is hashed to generate the device identification code. The device identification code, registration time, and geographic region code are embedded in binary form at the end of the hash result to generate a unique identifier.

3. The method according to claim 1, characterized in that, The step of matching label carrier types from a preset carrier type database based on the product's cost level, wherein the cost level is calculated by combining the product's market unit price and the cost of counterfeiting, includes: The product cost levels are set from high to low to several levels, and the value range for each cost level is set. Based on the level of technical complexity of product counterfeiting and the regional risk level of the target sales area, the counterfeiting risk parameters are evaluated by integrating them according to preset weights, and the counterfeiting cost value of the counterfeiting risk parameters is obtained by matching. The cost level of the product is determined by matching the product's market price in the target sales region to the cost of counterfeiting.

4. The method according to claim 3, characterized in that, The step of evaluating counterfeiting risk parameters based on the technical complexity level of product counterfeiting and the regional risk level of the target sales area, according to preset weights, and matching and obtaining the counterfeiting cost value of the counterfeiting risk parameters includes: The level of technical complexity is determined based on the production cost of the product. The regional risk level is determined based on the rate of counterfeit cases detected in the target sales region of the product.

5. The method according to claim 3, characterized in that, Before the step of matching label carrier types from a preset carrier type database based on the product's cost level, where the cost level is calculated by combining the product's market unit price and the cost of counterfeiting, the method further includes: The product cost levels are set from high to low as Level 1, Level 2, Level 3, and Level 4, and the value range for each cost level is set. Set the NFC chip as the tag carrier matching the first-level cost, set the RFID chip as the tag carrier matching the second-level cost, and set the QR code as the tag carrier matching the third-level cost.

6. The method according to claim 1, characterized in that, After the step of writing the anti-counterfeiting code into the matching label carrier and associating and storing the encryption seed, encryption round, and industry type parameters to the cloud blockchain node, the method further includes: In response to the anti-counterfeiting code verification operation, the anti-counterfeiting code is destroyed, and only the encrypted log in the cloud is retained.

7. A system for generating anti-counterfeiting codes based on multiple label carriers, characterized in that, include: Carrier matching module (1): used to match the label carrier type from a preset carrier type database according to the cost level of the product, wherein the cost level is calculated by combining the product market unit price and the counterfeiting cost; Identification acquisition module (2): used to obtain the unique identifier of the registration device, the unique identifier including the industry type parameter bound when the registration device is registered, the device serial number, the registration time and the geographical area code; Seed generation module (3): used to generate a composite encrypted seed by combining the cost level and the unique identifier; Capacity adaptation module (4): Used to dynamically adjust the initial length of the anti-counterfeiting code based on the data capacity limit of the tag carrier and generate a basic anti-counterfeiting code sequence, including: setting the initial code length to L0 according to the maximum data capacity of the tag carrier; calculating the final code length by formula L = L0 + k×S, where S is the counterfeiting case detection rate and k is the capacity expansion coefficient; when L exceeds the carrier capacity, the data compression algorithm is enabled to compress the encryption result; Multi-level encryption module (5): used to determine the combination of encryption algorithms and encryption rounds according to the security threshold corresponding to the product cost level, and to perform multiple rounds of encryption on the basic anti-counterfeiting code sequence to generate the final anti-counterfeiting code; Anti-counterfeiting code writing module (6): used to write the anti-counterfeiting code into the matching label carrier and associate the encrypted seed, encrypted round and industry type parameters to the cloud blockchain node.

8. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed as any one of the anti-counterfeiting code generation methods based on multiple label carriers as described in claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer program is stored that can be loaded by a processor and executed as any one of the anti-counterfeiting code generation methods based on multiple label carriers as described in claims 1 to 6.

Citation Information

Patent Citations

  • Goods tracing anti-counterfeiting method for active digital circuit board with encrypted radio frequency identifier

    CN107665414A

  • Article traceability code system

    CN115099834A