摘要 |
Disclosed is a data authenticity identification method for safety check of a two-dimensional code, comprising the steps of: S1, adding a check code into a character random code, so as to form a byte stream random number, and converting same into a check random code through data encryption and data conversion; S2, forming the check random code and a URL into a background access address, and generating the background access address in a two-dimensional code; S3, acquiring the check random code and the URL by scanning the two-dimensional code, deciphering and restoring the check random code, so as to obtain the character random code and the check code, and generating a new check code according to the character random code; S4, comparing the check code obtained by decryption and restoration with the generated new check code, if they are not consistent, returning validation failure information; and if they are consistent, conducting a further verification operation. The present invention can effectively prevent the influence of a brute-force crack, and avoid the paralysis of a database caused by the access of a large amount of data, thereby improving the security of a two-dimensional code to a certain extent. |