Skip to main content

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

Project description

gethash

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

Installation

Require Python 3.6+.

pip install -U gethash

or

pip3 install -U gethash

Usage

After installation, 11 commands are available:

  • md2
  • md4
  • md5
  • ripemd160
  • sha1
  • sha256
  • sha512
  • sha3-256
  • sha3-512
  • blake2b
  • blake2s

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 *.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-2.6.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

gethash-2.6-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gethash-2.6.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for gethash-2.6.tar.gz
Algorithm Hash digest
SHA256 9da1ac4b4cf040cc050c86b0db69c60553680d8d04314efba37701bc65cac54a
MD5 9ae4f2eb1f3d7b8a5cea2aea204fa48c
BLAKE2b-256 ff04068eb237fbdb46873f5d4ce1f17492883c6c01ab8dda4023626327bbdb9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gethash-2.6-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for gethash-2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b0d3fea31416f58db613372452982c7853fe21d7bbda175e4e6f49ec636d2096
MD5 4e669d1af3465ecdad50e57082a2d5e6
BLAKE2b-256 2b914f80c35b4ecb5d54546e61d8920ec66c343e6cbe98ed7b3107982568521d

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