A method for batch generation of commodity anti-counterfeit two-dimensional code
A two-dimensional code and commodity technology, which is applied in the field of batch generation of commodity anti-counterfeiting two-dimensional codes, can solve the problems of mistaking counterfeit commodities as genuine, not considering the security and computing efficiency of commodity anti-counterfeiting codes, and difficult to apply batches of commodities.
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2019-03-15
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to the technical field of digital anti-counterfeiting, in particular to a batch generation method of commodity anti-counterfeiting two-dimensional codes. Background technique
[0002] In today's society, the counterfeiting of commodities has gradually become a serious problem faced by the global economic field. The anti-counterfeiting situation in the 21st century is particularly severe. As the counterfeiting technology is becoming more and more sophisticated and the counterfeiters are becoming more and more experienced, the appearance of counterfeit products is also constantly improving. Therefore, there are higher requirements for digital anti-counterfeiting technology. However, the existing digital anti-counterfeiting technology basically uses a pseudo-random sequence or an ordered serial number to generate a commodity anti-counterfeiting code through DES symmetric encryption, which has certain differences with the performance ...
Examples
Embodiment 1
[0103] According to the batch generation method of product anti-counterfeiting codes above, the steps are as follows:
[0104] (1) When the batch commodity ID code of a certain batch of commodities is coded as S=“AB789 / ef12 2018-08-011234ab12” and the length L=30, set the production serial number numerical sequence B of this batch of commodities at the same time={0,1,2 ,3...999998,999999}, where each element starts from 0 and increases by 1, and its length K=10 6 ;
[0105] (2) Each character S of the bulk product ID code S k Respectively converted into ASCII code numerical data P k , get the numerical sequence P={65,66,55,56,57,47,101,102,49,50,32,50,48,49,56,45,48,56,45,48,49,32,49,50 ,51,52,97,98,49,50}, and then calculate the numerical data according to the following formula and switch data SK:
[0106]
[0107] SK=mod(sum(P),3)=mod(1702,3)=1
[0108] resulting in a sequence of values And switching data SK=1;
[0109] (3) Encryption of the batch commodity ID...
Embodiment 2
[0139] According to the above method for batch generation of anti-counterfeit two-dimensional codes of commodities, the batch generation steps of the key and its anti-counterfeit two-dimensional codes are similar to those in Embodiment 1, only the identity codes of the batch commodities are slightly changed (such as "AB789 / ef12 2018-08-01 1234ab11" , "AB789\ef12 2018-08-01 1234ab12" and "AC789 / ef12 2018-08-01 1234ab12"), where when the bulk product ID code is "AC789 / ef12 2018-08-01 1234ab12", the reverse substitution encryption operation is taken initial value and The results of the anti-counterfeit number and anti-counterfeit QR code for a single product are shown in Table 4. It can be seen from Table 4 that a slight change in the ID code of a batch of commodities will cause a great change in the anti-counterfeiting number of the commodity and the anti-counterfeiting two-dimensional code of the commodity, so it can be seen that a batch generation method of the anti-counter...
Embodiment 3
[0145] According to the method for batch generation of anti-counterfeit two-dimensional codes for commodities above, the steps for batch generation of commodity identity codes and anti-counterfeit two-dimensional codes are similar to those in Embodiment 2, only a certain key is slightly changed: α=-0.123450000000001; or β=4; or γ=-0.234560000000001; or η=3; or or or or The generation results of commodity anti-counterfeiting number and anti-counterfeiting QR code are shown in Table 5. It can be seen from the table below: Once the key changes even slightly, that is, "missing by a tiny bit", the generated product anti-counterfeiting number will be "a thousand miles away", so it can be seen that this patent proposes a method for batch generation of product anti-counterfeiting two-dimensional codes Key sensitive.
[0146] Table 5 When the key changes slightly, the product anti-counterfeiting number generation results
[0147]
[0148]
[0149]
[0150]
[0151]...