Skip to content

๐Ÿ” HashGard verifies file integrity by comparing hashes with stored signatures.

License

Notifications You must be signed in to change notification settings

Stanislas-GOTCH/hashgard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” HashGard: Verify Your Files with Confidence

HashGard is a Python script that safeguards file integrity by comparing calculated hashes with expected values stored in signature files.

๐ŸŽฏ Key Features

  • Calculates file hashes using various algorithms.
  • Compares calculated hashes with signatures for verification.
  • Provides clear messages indicating hash match/mismatch. โœ”๏ธ / โŒ

๐Ÿ”ง Usage

1. Dependencies

Install required libraries using requirements.txt pip install -r requirements.txt

2. Clone the Repo

git clone https://github.com/Stanislas-GOTCH/hashguard.git && cd hashguard

3. Run the Script, Providing Arguments

  • file: Path to the file for verification.
  • signature: Path to the signature file containing the expected hash.
  • algorithm: Hash algorithm to use.

Example

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.

โ„น๏ธ Help Flag (-h)

Use the -h or --help flag to view usage instructions and supported arguments.

๐Ÿ–ฅ๏ธ Cross-Platform Compatibility

HashGard is designed to work on most operating systems that support Python (either python or python3 depending on your system).

โš–๏ธ License

This project is licensed under the MIT License, a permissive open-source license that allows for free commercial and non-commercial use.

About

๐Ÿ” HashGard verifies file integrity by comparing hashes with stored signatures.

Topics

Resources

License

Stars

Watchers

Forks

Languages