HashGard is a Python script that safeguards file integrity by comparing calculated hashes with expected values stored in signature files.
- Calculates file hashes using various algorithms.
- Compares calculated hashes with signatures for verification.
- Provides clear messages indicating hash match/mismatch. โ๏ธ / โ
Install required libraries using requirements.txt
pip install -r requirements.txt
git clone https://github.com/Stanislas-GOTCH/hashguard.git && cd hashguard
- file: Path to the file for verification.
- signature: Path to the signature file containing the expected hash.
- algorithm: Hash algorithm to use.
python hashgard.py my_file.iso my_file.sha256 sha256
This verifies the sha256
hash of my_file.iso
against the hash stored in my_file.sha256
.
Tip: Tab completion (if supported) can assist with file paths during argument input.
Use the -h
or --help
flag to view usage instructions and supported arguments.
HashGard is designed to work on most operating systems that support Python (either python
or python3
depending on your system).
This project is licensed under the MIT License, a permissive open-source license that allows for free commercial and non-commercial use.