The invention discloses a
database integrity protection method and device, equipment and a storage medium, and relates to the technical field of
information security. Comprising the following steps: selecting an original table needing integrity protection in a
database, and adding an integrity protection field for storing a
message authentication code to generate a target table; creating a view with the same structure as the original table to take over
data access; a
database trigger is created on the target table, when data is added, deleted and changed through a view, the trigger triggers and calls a user-defined function, and according to a preset
access control strategy, a
message authentication code in the integrity protection field is generated, updated or kept; and when the data is queried through the view, calculating a current
message authentication code of the protected field, comparing the current message
authentication code with a stored historical message
authentication code, and performing
data integrity verification according to a comparison result. By means of the
data integrity protection method and device, under the condition that the application
system is free of transformation,
data integrity protection of the database
cell level can be achieved, and the application
system is prevented from using tampered data.