dirhasher computes a hash of a directory (or a ZIP archive) using go's
built-in dirhash module and prints it to stdout.
When computing the hash of a directory, the prefix argument passed
to dirhash.HashDir is always "".
go install github.com/arpio/dirhasher@latest
Use it on a ZIP archive:
dirhasher my-archive.zip
Or on a directory:
dirhasher /tmp/some-directory
Package documentation is available at godoc.