Database data is illegally tampered with, how does the program know

Database data is illegally tampered with, how does the program know?

Solution: You can add an MD5 field to the table, the value of this field is

MD5 values ​​of other field values ​​that need to be checked for tampering or values ​​generated by other encryption methods.

 

The program first compares the value generated by encrypting the value to be checked with the value of the MD5 field in the data table,

The same means that it has not been illegally tampered with, otherwise it is illegally tampered with.

After that, modify the MD5 value in the data table through the program.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326657073&siteId=291194637