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.