Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple file hash digests and file integrity checks

Project 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 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 install


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) :

Change the File Hash Digest Algorithm with a Command

$ hsh sha1 somefile.txt
SHA1 (somefile.txt) :

Examples of hsh File Integrity Check Features

Default SHA256 Digest File to File Comparisons

$ hsh firstfile.txt secondfile.txt

SHA256 (firstfile.txt) :
SHA256 (secondfile.txt) :

The hash digests are identical.

Automated File to File Hash Digest Comparisons for Supported Hash Types

$ hsh firstfile.txt 0e1fb609e951c85e01f4048f01f0b51256bb3917

SHA1 (firstfile.txt) :
SHA1 (test) :

The hash digests are identical.

File Hash Digest to File Hash Digest Comparisons

$ hsh 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.


Command line syntax and available commands & options are available in the documentation or by entering the command:

$ hsh --help


MIT License

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
hsh-1.1.0-py2.py3-none-any.whl (9.0 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Feb 16, 2016
hsh-1.1.0.tar.gz (7.1 kB) Copy SHA256 Checksum SHA256 Source Feb 16, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting