Simple file hash digests & file integrity checks
$ hsh <command> [file path]
The command argument is optional. If you do not include a primary command, hsh reports a SHA256 hash digest for your file. See the Commands section below for the available commands.
$ hsh [file path 1] [file path 2]
$ hsh [file path] [hash digest string]
$ hsh [hash digest string 1] [hash digest string 2]
Hash digest string arguments can include any supported hash digest type. hsh detects the hash digest algorithm by the length of the hash digest string argument and generates the correct hash digest for your file path argument to perform an appropriate comparison.
For file path to file path argument comparisons, hsh uses the SHA256 hash digest algorithm.
md5 | report MD5 hash digest |
sh1 | report SHA1 hash digest |
sha224 | report SHA224 hash digest |
sha256 | report SHA256 hash digest (default) |
sha384 | report SHA384 hash digest |
sha512 | report SHA512 hash digest |
--help | -h | view help documentation |
--usage | view usage documentation |
--version | -v | view installed application version |