This script let you generate an HMAC keyed hash for a file by inserting filename and hash key. You can also compare the newly generated hash with an old one for the same file to tell if they are different.
This is useful if you want to be sure that no one modified the file since the last time you checked it.
- Create a file (or take an existing one)
- Run the script inserting file name and choosing a password (key)
- Save the generated hash
- Next time you want to check the file you just have to run the program again (2) inserting the key you chose the previous time
- After the program calculates hash, choose option "C"
- Insert the old hash and the script will compare them