| With the rapid development of science and technology,a large number of practical technologies have been given full play,which includes two-dimensional code technology.As the most important carrier of information transmission,two-dimensional code is favored by people with the characteristics of large information capacity,high efficiency and simplicity.However,its universal use might brings a lot of potential information security risks.Aiming at the information security problem of two-dimensional code on mechanical products,a two-dimensional code encryption method is proposed.Combined with this method,a scheme of anti-counterfeiting system for mechanical products is designed.It not only has important application value for two-dimensional code encryption technology,but also has certain reference value for the anti-counterfeiting of mechanical products.Firstly,aiming at the security problem of information transmission,this thesis proposes a Feistel Encryption Standard algorithm based on Feistel structure,which is characterized by high security,fast speed and practicability.The FES algorithm uses the improved Feistel structure as the whole structure,and combines the improved128 bits AES algorithm’ key schedule.Under the premise of ensuring safety,we determine the optimal number of rounds by round number determination experiment to improve efficiency.Compared with the AES algorithm,FES algorithm in this thesis is less time used in encryption and decryption.In this thesis,16 random testing methods are selected to test hundreds of sequences generated by FES algorithm as experimental samples to verify the security of the algorithm.Secondly,focusing on the security problem for the two-dimensional code carrying information,this thesis proposes QR code information encryption method combined with FES algorithm,QR code image encryption method combined with FES algorithm and QR code mixed encryption method combined with FES algorithm,furthermore,analyzes the pros and cons of each method by simulation experiment.Finally,due to anti-counterfeiting traceability of mechanical products,this thesis chooses the suitable QR code encryption method to design a set of anti-counterfeiting traceability system based on PC and mobile,according to user needs to make overall architecture design and workflow design as well as a feasibility analysis of the project.This thesis through the study of the above three items,which has accumulated experience for the implementation and application of two-dimensional code encryption technology,also provides a theoretical basis for the anti-counterfeit traceability of mechanical products. |