Skip to content

Calculate and compare hash values quickly and easily

License

Notifications You must be signed in to change notification settings

B1TC0R3/hash_cmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hash-cmp

Rust
Calculate and compare hash values quickly and easily.
Verifying the integrity of files is somewhat tedious, as be default, one has to calculate the file hash and then compare it to whatever they expected it to be manually.
This tool makes this comparison a little more comfortable by automatically calculating the hash value of a file, comparing it with the expected value and highlighting the differences in color.

Additionally, the tool supports multiple different hash functions.
It will detect which hash method was used to create the expected hash value and decide on the correct value to calculate autonomously.

Supported Hashing Algorithms

  • Sha224
  • Sha256
  • Sha384
  • Sha512

How to use

./hash-cmp -h
./hash-cmp [optional: -q (quiet mode)] <file path> <expected hash>

Exit codes

  • 0: Hashes are equal
  • 300: Failed to detect hash method
  • 400: Hashes are not equal

Example

Verbose mode

image

Quiet mode

image

Roadmap

  • a AUR package