Movian
06-30-2014, 08:43 AM
Hey,
I have a requirement to hash records in a table to allow us to check if its been tampered with. When we display the records with an SQL query, I am trying to figure out how to check the records when accessed against that hash to ensure they are accurate and then have an extra column in the list box to say that it matches the hash.
So we have a list box with a basic query as record source "Select * FROM tblEvents WHERE Event Date Between '01/01/2001' AND '06/30/2014'" for example.
What I want to end up with is an extra column named "Integrity Checked" with Yes for columns where the stored hash matches a current hash.
Would rather not make a button that needs to be pressed to check the integrity and generate a report but I can do it that way if there is no way to do what I am trying to do.
(I do already have a function for generating SHA256 hashes that I will be using and I will be salting these hashes with a private key to generate the hashes stored in the table.)
I have a requirement to hash records in a table to allow us to check if its been tampered with. When we display the records with an SQL query, I am trying to figure out how to check the records when accessed against that hash to ensure they are accurate and then have an extra column in the list box to say that it matches the hash.
So we have a list box with a basic query as record source "Select * FROM tblEvents WHERE Event Date Between '01/01/2001' AND '06/30/2014'" for example.
What I want to end up with is an extra column named "Integrity Checked" with Yes for columns where the stored hash matches a current hash.
Would rather not make a button that needs to be pressed to check the integrity and generate a report but I can do it that way if there is no way to do what I am trying to do.
(I do already have a function for generating SHA256 hashes that I will be using and I will be salting these hashes with a private key to generate the hashes stored in the table.)