Skip to main content

Hash Brown

CircleCI codecov License PyPI

A simple command-line utility for calculating checksums.

Install

pip install hb

Usage

Calculate the sha1 of a file:

$ hb -a sha1 hello.txt
sha1 (hello.txt) = 493a253abf93d705d67edeb463134a5c8752fc9d

Check to see if file matches a given checksum:

$ hb -a md5 hello.txt -g 77060c267470021a97392b815138733e
md5 (hello.txt) = 77060c267470021a97392b815138733e OK

$ hb -a md5 hello.txt -g 0123456789abcdef
md5 (hello.txt) = 0123456789abcdef BAD

Checksums can be read from a file:

$ hb -c checksums.txt
sha512 (hello.txt) = 493a253abf93d705d67edeb463134a5c8752fc9d OK
sha512 (world.txt) = 683e4ee04e75e71a6dca42807001f00be1fcb2a3 OK
sha512 (image.jpg) = f3a53e6c2743645f08faedadd7a2c57cbc38632f OK
sha512 (video.mp4) = 03ba9191fc4cd74f218df58542643fbc07dca532 OK

Hash Brown outputs its results in BSD style. The checksum files are also BSD style.

All files are read in binary mode.

Globbing and recursive globbing are supported via * and ** respectively.

Dotfiles are not included when globbing and need to be specified explicitly.

Options

-a, --algorithm [blake2b|blake2s|md5|sha1|sha224|sha256|sha384|sha512|adler32|crc32]
-c, --check                     Read checksums from a file.
-g, --given TEXT                See if the given checksum `TEXT` matches the
                                computed checksum. (use with -a)
-p, --parallel                  Process files in parallel.
-q, --quiet                     Hide results that are OK. (use with -c)
-t, --timer                     Display elapsed time in seconds.
--version                       Show the version and exit.
-h, --help                      Show this message and exit.

Release files for hb 1.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hb 1.4.2
File Size Uploaded
hb-1.4.2.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hb 1.4.2
File Interpreter ABI Platform
hb-1.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / hb-1.4.2.tar.gz

Download URL hb-1.4.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
72441a6d8dd3b8b6781d2abf1c60fc00c755e805fe2c22ed95d1453657807c69
BLAKE2b-256 checksum
How to use checksums
f8335db3b31c3c8dcc2d6d87848576a72d8094596be243ce1140a215df302781
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.5 CPython/3.7.1 Windows/7

Release files / hb-1.4.2-py3-none-any.whl

Download URL hb-1.4.2-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eaf6f9a73c881d0884e7aba79e1ba104db910840eef671bfd2db81a3b4aa95b2
BLAKE2b-256 checksum
How to use checksums
14eef8d2ab1987708f5187bc76ce88b88304d73b983721258eba028701a537b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.5 CPython/3.7.1 Windows/7

Release history Release notifications | RSS feed

This release

1.4.2 This release

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page