more useful options | |
PerlMonks |
Hash generate and find tampered tables in PostgreSQLby gtk (Acolyte) |
on Sep 22, 2017 at 05:23 UTC ( [id://1199866]=perlquestion: print w/replies, xml ) | Need Help?? |
gtk has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I am in a process of writing a perl script to hash tables in a schema to track any changes done in table definition level. This is thoroughly for the security purpose and to minimize the unauthorized changes in the DB. So the plan is to generate a Hash/Checksum key for each table and store in a temporary table after any deployment. Then generate the Hash/Checksum key value again before the next deployment and compare the previous Hash/Checksum values. Please let me know a correct way to do this in PostgreSQL. I did the same thing Oracle DB by using DBMS_CRYPTO function and couldn't able to find a way in PostgreSQL. So please suggest me a way to handle this hashing tables method and relevant functions/utilities? Thanks.
Back to
Seekers of Perl Wisdom
|
|