π File Hash Verifier is a simple Python CLI tool that generates and verifies SHA256 (or other) hashes of files. It ensures file integrity by comparing computed hashes with known ones, helping detect tampering or corruption. Supports multiple algorithms and clean command-line usage.
Clone the repository: ```bash git clone krunal1703.github.io/File_Hash_Verifier/ cd file-hash-verifier
OR
Calculate a fileβs hash:
```bash python hashverifier.py example/testfile.txt
you get has like {it is only for example}
[INFO] SHA256 hash of testfile.txt:
e3b96d0dad8eb141a90bdc338c591a682a37600edba3bd9b0379e175e5eae95a
Then Compare with saved hash:
for example my hash file is like this:
echo "e3b96d0dad8eb141a90bdc338c591a682a37600edba3bd9b0379e175e5eae95a"
I compare to my hash file vith test file:
```bash
python hashverifier.py testfile.txt --compare e3b96d0dad8eb141a90bdc338c591a682a37600edba3bd9b0379e175e5eae95a