The invention discloses a method for generating anti-counterfeiting code information. The method comprises the following steps: step one, creating a value
color table and an image
library; step two, carrying out invoking by an external
system by parameters including an internal code, Url and a prefix and starting an anti-counterfeiting information
generation process; step three, combining the Url, prefix and internal code, calculating a check code, combining the Url, prefix and internal code with the check code, and forming a two-dimensional code; step four, generating an anti-counterfeiting numerical value information
list; step five, in the two-dimensional code obtained in the step three, carrying out image index calculation, carrying out delivery
processing on the total number of anti-counterfeiting images in the image
library based on the calculation result to obtain an image index, and acquiring a corresponding anti-counterfeiting image from the image
library; and step six, combining the two-dimensional code obtained in the step three, the anti-counterfeiting numerical value information
list obtained in the step four and the anti-counterfeiting image obtained in the step five to generate anti-counterfeiting code information. With the method disclosed by the invention, invoking becomes simple; and the data storage pressure is low.