seghash is a free tool that allows to:
- calculate segmented hashes of image
- verify calculated segmented hashes
Supported hash types: MD5, SHA1, SHA224, SHA256, SHA384, SHA512
How segmented hashing is it different from regular hashing?
With regular hashing, you get a single hash for the entire image.
With segmented hashing, you end up with many hashes of corresponding LBA ranges (chunks) of the image. The sum of these LBA ranges represents the entire image, just not necessarily in sequential order. By validating all hashes in a set you can still prove that the entire image was not modified.
Read more in Segmented Hashes Whitepaper
Download and compile sources
You can skip steps 1 and 2 if you did them previously.
- Download and install Go: https://golang.org/doc/install
- Perform these instructions: https://golang.org/doc/install#testing
go get github.com/atola-technology/seghash
Source files will be downloaded to the folder: GOPATH/src/github.com/atola-technology/seghash
Binary executable file will be compiled to the folder: GOPATH/bin
Segmented hashes calculation:
seghash calc Drive.img sha1
Segmented hashes verification:
seghash verify Drive.img Hashes-sha1.csv