Skip to main content

Python drop-in replacement for md5sum and co.

Project description

copiright:

2016 Antonio Valentino <antonio dot valentino at tiscali dot it>

https://travis-ci.org/avalentino/hashsum.svg?branch=master

Usage

usage: hashsum [-h] [-a] [--tag] [-b | -t] [-c | -l] [--quiet]
               [--status] [--strict] [-w] [-m] [--version]
               [FILE [FILE ...]]

Compute and check message digest with different hash algorithms.
The sums are computed as described in [1].
When checking, the input should be a former output of this program.
The default mode is to print a line with checksum, a character
indicating input mode ('*' for binary, space for text), and name
for each FILE.

[1] https://docs.python.org/3/library/hashlib.html

positional arguments:
  FILE                  name of file to process. If not specified,
                        or set to -, data are read form the
                        standard input

optional arguments:
  -h, --help            show this help message and exit
  -a , --algorithm      specify the hashing algorithm
                        (default: MD5)
  --tag                 create a BSD-style checksum
  -b, --binary          read input data in binary mode
  -t, --text            read input data in text mode (default)
  -c, --check           read checksum(s) form FILE and check them
  -l, --list-algorithms
                        list available hashing algorithms
  -m, --multi-thread    perform I/O and hash computation in separate threads
                        (default=False). Can speed-up computation on large
                        files while it is not recommended for small files.
  --version             show program's version number and exit

check:
  Options that are useful only when verifying checksums

  --quiet               don't print OK for each successfully
                        verified file
  --status              don't output anything, status code shows
                        success
  --strict              exit non-zero for improperly formatted
                        checksum lines
  -w, --warn            warn about improperly formatted checksum
                        lines

Package testing

$ python setyp.py test

Project details


Download files

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

Source Distribution

hashsum-1.1.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

hashsum-1.1.1-py2.py3-none-any.whl (19.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hashsum-1.1.1.tar.gz.

File metadata

  • Download URL: hashsum-1.1.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hashsum-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1258f8e4d54ed840d29fd51b904d5c5ac07fa000e2b9cbef9b8c3c8644a38275
MD5 acbd54e9bbeca32f83ce1d0aa2d70108
BLAKE2b-256 d9afaa8dbfb5fc7958e827e74651c7179fce6c28a7dbec0a8c693de485f834d2

See more details on using hashes here.

File details

Details for the file hashsum-1.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for hashsum-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 56f765fdb9a2301285939d812e886c04222edecf78e0921b517383b718d0f167
MD5 9230ba7cc05ef8076c974bd4855a282f
BLAKE2b-256 9f77ef7ba104ae2ef29c95b514c8b632d58a6f17657f248dc72a430e8df13525

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page