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 (if you need legacy hash algorithms)
pip install -U gethash[all]
Usage
After installation, 8 commands are available:
- 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
Release history Release notifications | RSS feed
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.7.tar.gz
(12.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gethash-2.7-py3-none-any.whl
(16.1 kB
view details)
File details
Details for the file gethash-2.7.tar.gz.
File metadata
- Download URL: gethash-2.7.tar.gz
- Upload date:
- Size: 12.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eeea6b605a6fa2c730409143e029f2e3a8633cab401fcfe3176ef6fbac229f0
|
|
| MD5 |
a653eb2ac6f088a964fe582eacec2ea0
|
|
| BLAKE2b-256 |
5b6366cbb724e2f62dc4160c65fdcafcbaa6ad23d5301d44c8be234ca3f525e8
|
File details
Details for the file gethash-2.7-py3-none-any.whl.
File metadata
- Download URL: gethash-2.7-py3-none-any.whl
- Upload date:
- Size: 16.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e61f4ceff1863b885ce6a2c5ca3028636bdba9b8ff589772332c3d96cc1ec861
|
|
| MD5 |
713b3293605f3a4cd5456c7c6220e3ce
|
|
| BLAKE2b-256 |
e2f2aa774a1a8e2c0ecb39465b331ebd0119d436d2e577c61ed09cd22a94671c
|