Simple file hash digests & file integrity checks
hsh is a cross-platform command line application that generates file hash digests and performs file integrity checks via file hash digest comparisons. It supports the following hash algorithms:
$ hsh somefile.txt
SHA256 (somefile.txt) :
5c2b47648ae96e60b5d02c573aefa6b01fb49d1b9e1ebd8a1b1a794cf522e6e3
Use a supported file hash digest algorithm as an explicit command to request a hash digest of that type:
$ hsh sha1 somefile.txt
SHA1 (somefile.txt) :
0e1fb609e951c85e01f4048f01f0b51256bb3917
$ hsh firstfile.txt secondfile.txt
SHA256 (firstfile.txt) :
0dbe4bb7df0f6d271e8f1fc30ec586fdfb5218e5a615c9abd3843943b4779e9e
SHA256 (secondfile.txt) :
0dbe4bb7df0f6d271e8f1fc30ec586fdfb5218e5a615c9abd3843943b4779e9e
The hash digests are identical.
Include any of the supported file hash digest types as an argument in your command and hsh automatically generates the appropriate hash digest for the file then compares it to your command line argument:
$ hsh firstfile.txt 0e1fb609e951c85e01f4048f01f0b51256bb3917
SHA1 (firstfile.txt) :
0e1fb609e951c85e01f4048f01f0b51256bb3917
SHA1 (test) :
0e1fb609e951c85e01f4048f01f0b51256bb3917
The hash digests are identical.
$ hsh da24f4932321286ac849f9145707f0e8 da24f4932321286ac849f9145707f0e9
da24f4932321286ac849f9145707f0e8
da24f4932321286ac849f9145707f0e9
===============================^
The hash digests are NOT identical.
A diff indicator is displayed below the hash digests when they differ.
A Quickstart Guide is available for those who want to get up and running immediately. The Usage Guide details the command line syntax and available commands.
The FAQ has additional information about hash digests and the interpretation of their comparisons as well as a link to more information for further reading.