File Integrity Checker
Verify the integrity of application log files to detect tampering.
5 upvotes
10 upvotes
You are required to develop a tool that verifies the integrity of log files to detect tampering. This tool can be used to enhance security measures by using techniques such as file integrity monitoring and hashing to ensure that no unauthorized changes have been made to the log files.
Requirements
The tool should be capable of the following:
Accept a directory or a single log file as input.
Utilize a cryptographic hashing algorithm, such as SHA-256, to compute hashes for each log file provided.
On first use, store the computed hashes in a secure location.
For subsequent uses, compare the newly computed hashes against the previously stored ones.
Clearly report any discrepancies found as a result of the hash comparison, indicating possible file tampering.
Allow for manual re-initialization of log file integrity.
Here is the example of how it might look like
After completing this project you will get the idea of hashing algorithms, security and writing scripts.
