multihash

command module
v0.0.0-...-515910f Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

This is a bad tool and you shouldn't use it.

This is a multihash-ified file checker which could be used in the same way you might use md5sum or sha256sum commands.

installing in $GOBIN:

$ cd /to/this/directory
$ go get

list available hash algorithms:

$ multihash list
...

Generating multihash sums:

$ multihash sum <filename>

or from stdin

$ somecommand | multihash sum

Select a different hashing algorithm by passing -h.

multihash sum -h sha3-224 <filename>

The output of the sum command can be captured to verfiy files later

$ echo A > a.txt
$ echo B > b.txt
$ multihash sum *.txt > SUMS
$ multihash check  SUMS
a.txt  PASS
b.txt  PASS

$ echo CORRUPTION > b.txt
a.txt  PASS
b.txt  FAIL

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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