seghash

command module
v0.0.0-...-9daca04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2017 License: MIT Imports: 23 Imported by: 0

README

seghash

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 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 binaries

Download and compile sources

You can skip steps 1 and 2 if you did them previously.

  1. Download and install Go: https://golang.org/doc/install
  2. Perform these instructions: https://golang.org/doc/install#testing
  3. Run go get github.com/atola-technology/seghash

Results:

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

Examples

Segmented hashes calculation:

seghash calc Drive.img sha1

Segmented hashes verification:

seghash verify Drive.img Hashes-sha1.csv

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
external
github.com/alecthomas/kingpin
Package kingpin provides command line interfaces like this: $ chat usage: chat [<flags>] <command> [<flags>] [<args> ...] Flags: --debug enable debug mode --help Show help.
Package kingpin provides command line interfaces like this: $ chat usage: chat [<flags>] <command> [<flags>] [<args> ...] Flags: --debug enable debug mode --help Show help.
github.com/alecthomas/template
Package template implements data-driven templates for generating textual output.
Package template implements data-driven templates for generating textual output.
github.com/alecthomas/template/parse
Package parse builds parse trees for templates as defined by text/template and html/template.
Package parse builds parse trees for templates as defined by text/template and html/template.
github.com/alecthomas/units
Package units provides helpful unit multipliers and functions for Go.
Package units provides helpful unit multipliers and functions for Go.
github.com/cheggaaa/pb
Simple console progress bars
Simple console progress bars

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL