Consumable anti-counterfeiting method and system

By generating QR codes and activation codes in the device, combined with the server's judgment, offline activation of consumables is achieved, solving the problems of high cost and poor applicability of traditional consumables anti-counterfeiting methods, reducing equipment requirements and improving flexibility.

CN119444241APending Publication Date: 2025-02-14YINUO FUTURE TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411321686.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The traditional method of anti-counterfeiting of consumables requires adding IC chips/RFID electronic tags to the consumables, which are costly and difficult to use in smaller consumables or special scenarios, such as high temperature, high voltage, strong electromagnetic interference and other scenarios. At the same time, traditional methods require devices to communicate directly with servers, which increases the requirements of devices.

Method used

By maintaining the key and random values ​​in the device, generating a QR code for activation, using the server to judge the authenticity and usage of the consumables, generating an activation code for device activation, and realizing offline activation.

Benefits of technology

No additional circuitry required to add to the consumables, reduce costs, is suitable for smaller consumables or special scenarios, and reduces the requirements of the device for communication modules through offline activation, improving the flexibility and reliability of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119444241A_ABST
    Figure CN119444241A_ABST
Patent Text Reader

Abstract

The invention provides a consumable anti-counterfeiting method and system, and relates to the technical field of consumable anti-counterfeiting. The consumable anti-counterfeiting method comprises the following steps that S1, equipment is maintained with a secret key and a random value, the secret key is solidified in the equipment when leaving a factory and recorded in a server, the random value is automatically generated by the equipment, it needs to be guaranteed that the random value is changed only once after consumable replacement, and the value is different from any value used before; s2, after the consumables are replaced, the device splices the URL, the device SN and the random value to generate a two-dimensional code; s3, a user scans the two-dimensional code with a mobile phone to enter an activation page, and at the moment, the server can obtain the equipment SN and the random value; and S4, the user needs to fill in the consumable SN in the activation page, and the server judges whether the consumable is a certified product or not and whether the consumable is used or not. According to the invention, certified product verification is carried out through the serial number of the consumable, no additional circuit needs to be added, and the equipment is activated through the activation code, can be activated offline and does not need to be directly connected with a server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of consumables anti-counterfeiting, and in particular to a consumables anti-counterfeiting method and system. Background Art

[0002] Traditional anti-counterfeiting methods for consumables have the following defects: IC chips / RFID electronic tags need to be added to the consumables, which is costly and difficult to use for smaller consumables or in special scenarios, such as high temperature, high voltage, strong electromagnetic interference, etc. In addition, traditional anti-counterfeiting methods for consumables require the device to communicate directly with the server, which requires the device to have a communication module, which increases the requirements for the device. Summary of the invention

[0003] 1. Technical issues to be solved

[0004] In view of the deficiencies in the prior art, the present invention provides a consumables anti-counterfeiting method and system, which solves the problem that IC chips / RFID electronic tags need to be added to consumables, which is costly and difficult to use for smaller consumables or in special scenarios, such as high temperature, high voltage, strong electromagnetic interference, etc. In addition, the traditional consumables anti-counterfeiting method requires the device to communicate directly with the server, which requires the device to have a communication module, which increases the device requirements.

[0005] (II) Technical solution

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a consumables anti-counterfeiting method, the anti-counterfeiting method comprising the following steps:

[0007] S1. The device maintains a key and a random value. The key is fixed in the device when it leaves the factory and recorded in the server. The random value is automatically generated by the device and must be changed only once after the consumables are replaced, and the value is different from any previously used value.

[0008] S2. After replacing the consumables, the device concatenates the URL, device SN, and random value to generate a QR code;

[0009] S3. The user scans the QR code with a mobile phone and enters the activation page. At this time, the server can obtain the device SN and random value;

[0010] S4. The user needs to fill in the consumable SN on the activation page, and the server will determine whether the consumable is genuine and whether it has been used;

[0011] S5. If it is genuine, the server will concatenate the device ID, random value, and key, use the secure hash algorithm to generate an activation code, and display it to the user;

[0012] S6. The user inputs the activation code into the device, and the device generates an activation code in the same way and determines whether it is consistent with the user input;

[0013] S7. If they are consistent, the activation is successful and the consumables are genuine.

[0014] Preferably, the QR code generated in step 2 is random, and after the consumables are replaced, the original QR code becomes invalid, and a new QR code is automatically and randomly generated.

[0015] Preferably, in step 4, regardless of whether the consumables are genuine, a pop-up window will be displayed on the activation page to remind you, and the activation page will prompt whether the consumables SN filled in is correct.

[0016] Preferably, in step 5, the hash algorithm maps a binary value of arbitrary length into a smaller binary value of fixed length. This small binary value is the hash value. The hash value is a unique and extremely compact numerical representation of a piece of data. A 5-byte hash value is generated using the hash algorithm, and an activation code of 8 characters is generated using Base32 encoding.

[0017] Preferably, the activation code entered in step 6 is not case sensitive.

[0018] A consumables anti-counterfeiting system comprises a server, a device, a random value generation module, a first splicing module, a second splicing module, an activation code generation module, and an activation code judgment module.

[0019] Preferably, the random value generation module is used to generate a random value, and the generated random value is unique; the first splicing module is used to splice the URL, device SN, and random value, and the second splicing module is used to splice the device ID, random value, and key.

[0020] Preferably, the activation code generation module is used to generate an activation code through a hash algorithm, and use Base32 encoding to generate an activation code with a length of 8 characters. The activation code judgment module is used to compare the activation code input into the device with the activation code generated by the device.

[0021] (III) Beneficial effects

[0022] The present invention provides a consumables anti-counterfeiting method and system, which has the following beneficial effects:

[0023] 1. The present invention verifies the authenticity of the consumables through their own serial numbers without adding additional circuits.

[0024] 2. In the present invention, the device is activated through an activation code and can be activated offline without direct connection to the server.

[0025] 3. The present invention uses a challenge-response verification method, and the two-dimensional code generated each time the verification is different, which can effectively prevent replay attacks. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A server-side flow chart of a consumables anti-counterfeiting method and system provided by the present invention;

[0027] Figure 2 A device-side flow chart of a consumables anti-counterfeiting method and system provided by the present invention. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] Example:

[0030] like Figure 1-2 As shown, an embodiment of the present invention provides a consumables anti-counterfeiting method, the anti-counterfeiting method comprising the following steps:

[0031] S1. The device maintains a key and a random value. The key is fixed in the device when it leaves the factory and recorded in the server. The random value is automatically generated by the device and must be changed only once after the consumables are replaced, and the value is different from any previously used value.

[0032] S2. After replacing the consumables, the device concatenates the URL, device SN, and random value to generate a QR code. The generated QR code is random.

[0033] S3. The user scans the QR code with a mobile phone and enters the activation page. At this time, the server can obtain the device SN and random value;

[0034] S4. The user needs to fill in the consumable SN on the activation page, and the server will determine whether the consumable is genuine and whether it has been used. Regardless of whether the consumable is genuine, the activation page will pop up a reminder and prompt whether the filled consumable SN is correct;

[0035] S5. If it is genuine, the server will concatenate the device ID, random value, and key, use the secure hash algorithm to generate an activation code, and display it to the user. The hash algorithm maps a binary value of any length to a smaller binary value of a fixed length. This small binary value is the hash value. The hash value is a unique and extremely compact numerical representation of a piece of data. The hash algorithm is used to generate a 5-byte hash value, and Base32 encoding is used to generate an 8-character activation code.

[0036] S6. The user enters the activation code into the device. The device generates an activation code in the same way and determines whether it is consistent with the user input. The activation code is not case sensitive when entered.

[0037] S7. If they are consistent, the activation is successful and the consumables are genuine.

[0038] The present invention also includes a consumable anti-counterfeiting system, which includes a server, a device, a random value generation module, a first splicing module, a second splicing module, an activation code generation module, and an activation code judgment module. The random value generation module is used to generate a random value, and the generated random value is unique; the first splicing module is used for splicing a URL, a device SN, and a random value, the second splicing module is used for splicing a device ID, a random value, and a key, the activation code generation module is used to generate an activation code through a hash algorithm, and uses Base32 encoding to generate an activation code with a length of 8 characters. The activation code judgment module is used to compare the activation code input into the device with the activation code generated by the device.

[0039] The present invention verifies the authenticity of the consumables through the serial number of the consumables themselves, without adding additional circuits; the device is activated through the activation code, and can be activated offline without direct connection to the server; a challenge-response verification method is used, and the two-dimensional code generated each time the verification is performed is different, which can effectively prevent replay attacks.

[0040] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprising a reference structure" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0041] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A consumables anti-counterfeiting method, characterized in that: The anti-counterfeiting method comprises the following steps: S1. The device maintains a key and a random value. The key is fixed in the device when it leaves the factory and recorded in the server. The random value is automatically generated by the device and must be changed only once after the consumables are replaced, and the value is different from any previously used value. S2. After replacing the consumables, the device concatenates the URL, device SN, and random value to generate a QR code; S3. The user scans the QR code with a mobile phone and enters the activation page. At this time, the server can obtain the device SN and random value; S4. The user needs to fill in the consumable SN on the activation page, and the server will determine whether the consumable is genuine and whether it has been used; S5. If it is genuine, the server will concatenate the device ID, random value, and key, use the secure hash algorithm to generate an activation code, and display it to the user; S6. The user inputs the activation code into the device, and the device generates an activation code in the same way and determines whether it is consistent with the user input; S7. If they are consistent, the activation is successful and the consumables are genuine.

2. The consumables anti-counterfeiting method according to claim 1, characterized in that: The QR code generated in step 2 is random.

3. The consumables anti-counterfeiting method according to claim 2, characterized in that: In step 4, regardless of whether the consumables are genuine, a pop-up window will be displayed on the activation page to remind you, and the activation page will prompt whether the consumables SN filled in is correct.

4. The consumables anti-counterfeiting method according to claim 3, characterized in that: In step 5, the hash algorithm maps a binary value of any length into a smaller binary value of a fixed length. This small binary value is the hash value. The hash value is a unique and extremely compact numerical representation of a piece of data. The hash algorithm is used to generate a 5-byte hash value, and Base32 encoding is used to generate an activation code of 8 characters.

5. The consumables anti-counterfeiting method according to claim 4, characterized in that: The activation code entered in step 6 is not case sensitive.

6. The anti-counterfeiting system of the consumables anti-counterfeiting method according to claim 5, characterized in that: The anti-counterfeiting system includes a server, a device, a random value generation module, a first splicing module, a second splicing module, an activation code generation module, and an activation code judgment module.

7. The consumables anti-counterfeiting system according to claim 6, characterized in that: The random value generation module is used to generate a random value, and the generated random value is unique; the first splicing module is used to splice the URL, device SN, and random value, and the second splicing module is used to splice the device ID, random value, and key.

8. The consumables anti-counterfeiting system according to claim 7, characterized in that: The activation code generation module is used to generate an activation code through a hash algorithm, and use Base32 encoding to generate an activation code with a length of 8 characters. The activation code judgment module is used to compare the activation code input into the device with the activation code generated by the device.