I have a database table that I want to confirm has not been tinkered with. My theory is to create a hash of static items and store that in the table. Then compare these when the data is required, for example....
+------+---------------------+----------+----------+
| ID | Creation_date | value | hash |
+------+---------------------+----------+----------+
| 1 | 2012-11-30 13:59:48 | 10.99 | wd32d... |
+------+---------------------+----------+----------+
| 2 | 2012-11-30 14:08:48 | 10.00 | vadfv... |
+------+---------------------+----------+----------+
| 3 | 2012-11-30 15:10:48 | 13.00 | 43f3f... |
+------+---------------------+----------+----------+
| 4 | 2012-11-30 16:13:48 | 12.00 | 6yg54... |
+------+---------------------+----------+----------+
So the hash would be created by the combining the first 3 columns and a salt. Is this an effective method to achieve this? Is there a better way?