Skip to main content

A set of command-line tools that can generate or check various hash values

Project description

gethash

A set of command-line tools that can generate or check various hash values.

Installation

Require Python 3.6+.

$ pip install -U gethash

or (if you need legacy hash algorithms)

$ pip install -U gethash[all]

Usage

After installation, 9 commands are available:

  • crc32
  • md5
  • sha1
  • sha256
  • sha512
  • sha3-256
  • sha3-512
  • blake2b
  • blake2s

If you use [all], 3 additional commands are available:

  • md2
  • md4
  • ripemd160

Generate hash values

$ ls -l
total 296
-rw-r--r-- 1 User 197610  68074 Jun 27 10:43 001.zip
-rw-r--r-- 1 User 197610 126717 Jun 27 10:43 002.zip
-rw-r--r-- 1 User 197610 103064 Jun 27 10:44 003.zip

$ sha1 -s *.zip
7701133eb84b567362fbf1b9e3883d7620ee8ada *001.zip
0d6c6cb6908064139f419c1b528f99142a1f2a49 *002.zip
10e2c0d8aa85add2ba495393f7f7f0b0baaf34a6 *003.zip

$ ls -l
total 299
-rw-r--r-- 1 User 197610  68074 Jun 27 10:43 001.zip
-rw-r--r-- 1 User 197610     51 Jun 27 10:44 001.zip.sha1
-rw-r--r-- 1 User 197610 126717 Jun 27 10:43 002.zip
-rw-r--r-- 1 User 197610     51 Jun 27 10:44 002.zip.sha1
-rw-r--r-- 1 User 197610 103064 Jun 27 10:44 003.zip
-rw-r--r-- 1 User 197610     51 Jun 27 10:44 003.zip.sha1

Check hash values

$ cat *.sha1
7701133eb84b567362fbf1b9e3883d7620ee8ada *001.zip
0d6c6cb6908064139f419c1b528f99142a1f2a49 *002.zip
10e2c0d8aa85add2ba495393f7f7f0b0baaf34a6 *003.zip

$ sha1 -c *.sha1
[SUCCESS] 001.zip
[SUCCESS] 002.zip
[SUCCESS] 003.zip

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

gethash-3.7.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

gethash-3.7-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file gethash-3.7.tar.gz.

File metadata

  • Download URL: gethash-3.7.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for gethash-3.7.tar.gz
Algorithm Hash digest
SHA256 da37e1caac0f6249bd04f34d9640e1d6e7367b1a26dc88d086fece43ea95f7f8
MD5 68e3e43a16b6c7fb0977c9a855298ce7
BLAKE2b-256 e358e24bfff5f42e24f56aa26754ccf98baf62baf56bc8344170fbcd7bb7f52d

See more details on using hashes here.

File details

Details for the file gethash-3.7-py3-none-any.whl.

File metadata

  • Download URL: gethash-3.7-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for gethash-3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0554e1cd4cf5996ab1f34897494efc41b9310eb8486da4ae6f3d2cc61fc37268
MD5 45ea3231eecd5110f3962952eef97407
BLAKE2b-256 4260af17f8a4c186832da55adaa652e4b852cee59a55a23df14babc0dcae6aa5

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