Documentation: https://chrissimpkins.github.io/hsh/
Description
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:
MD5
SHA1
SHA224
SHA256
SHA384
SHA512
Install
Install with pip using the command:
$ pip install hsh
or download the source repository, unpack it, and navigate to the top level of the repository. Then enter:
$ python setup.py install
Upgrade
You can upgrade your hsh version with the command:
$ pip install --upgrade hsh
Examples of hsh File Hash Digest Features
Default SHA256 File Hash Digests
$ hsh somefile.txt
SHA256 (somefile.txt) :
5c2b47648ae96e60b5d02c573aefa6b01fb49d1b9e1ebd8a1b1a794cf522e6e3
Change the File Hash Digest Algorithm with a Command
$ hsh sha1 somefile.txt
SHA1 (somefile.txt) :
0e1fb609e951c85e01f4048f01f0b51256bb3917
Examples of hsh File Integrity Check Features
Default SHA256 Digest File to File Comparisons
$ hsh firstfile.txt secondfile.txt
SHA256 (firstfile.txt) :
0dbe4bb7df0f6d271e8f1fc30ec586fdfb5218e5a615c9abd3843943b4779e9e
SHA256 (secondfile.txt) :
0dbe4bb7df0f6d271e8f1fc30ec586fdfb5218e5a615c9abd3843943b4779e9e
The hash digests are identical.
Automated File to File Hash Digest Comparisons for Supported Hash Types
$ hsh firstfile.txt 0e1fb609e951c85e01f4048f01f0b51256bb3917
SHA1 (firstfile.txt) :
0e1fb609e951c85e01f4048f01f0b51256bb3917
SHA1 (test) :
0e1fb609e951c85e01f4048f01f0b51256bb3917
The hash digests are identical.
File Hash Digest to File Hash Digest Comparisons
$ hsh da24f4932321286ac849f9145707f0e8 da24f4932321286ac849f9145707f0e9
da24f4932321286ac849f9145707f0e8
da24f4932321286ac849f9145707f0e9
===============================^
The hash digests are NOT identical.
A diff string is displayed below the hash digests when they differ as shown in the example above.
Usage
Command line syntax and available commands & options are available in the documentation or by entering the command:
$ hsh --help
License
Metadata
Release files for hsh 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hsh-1.1.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hsh-1.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 16.1 kB
Release files / hsh-1.1.0.tar.gz
| Download URL | hsh-1.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c04e43ac538feafb029dba3c4972207a704f5fcdf0ee271ebdddd03d96b5df85
|
|
BLAKE2b-256 checksum How to use checksums |
88ddc04f9a56e374e7fe5a0ac5032d0a059ef7338485bcd2ae1a05115081c4e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / hsh-1.1.0-py2.py3-none-any.whl
| Download URL | hsh-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d40ba1e29cdcf1f8492738a6fd2c123cfcff007860bf70de19b25f5c6ec1e991
|
|
BLAKE2b-256 checksum How to use checksums |
0ad1336bc05affc776b3b34ac1cddcf8f7e1fd081cef9b4034d778b5833c6c20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |