The invention relates to the technical field of electric
digital data processing, and provides a product production serial number anti-counterfeiting generation method which comprises the following steps: S1, generating a head character: acquiring character data of a material number, a production year, a production month, a production date, a batch sequence and a product serial number of a production material from a material production
system, and splicing the character data into a long character string; s2,
data reduction: complementing the long character string into a fixed-length character string according to bits; s3, generating a random code: generating a two-digit random code within 100; and S4, generating a check code. According to the method, the extremely simple
encryption anti-counterfeiting function can be effectively fused in the
control system of the
production line, so that the problems of communication frequency, communication protocol benchmarking and the like are effectively avoided, meanwhile, due to the fact that the calculation amount is small and effective
reverse engineering cannot be achieved, the requirement of independent hardware can be effectively avoided, production enterprises are extremely easy to accept, and the technology is easy to popularize and apply.