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, 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-3.3.tar.gz
(13.5 kB
view details)
Built Distribution
gethash-3.3-py3-none-any.whl
(17.7 kB
view details)
File details
Details for the file gethash-3.3.tar.gz
.
File metadata
- Download URL: gethash-3.3.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 414897f8a68d7b9f872f94fab846972c55552d48e4d72e4f0c3c1ec0df0222e3 |
|
MD5 | 3b1977ae5fe5f13b0c0cc26148d27262 |
|
BLAKE2b-256 | e48f23e3e56e4d783500952ba2c0d1dbfb30d5646b8254666f643744190307cc |
File details
Details for the file gethash-3.3-py3-none-any.whl
.
File metadata
- Download URL: gethash-3.3-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eaef762b5bdaf2fd30039b90e19b11e2ce085d46b7084e9f53bfc3a954bdb67 |
|
MD5 | 271df43476ec8a4d474a2a293386ce27 |
|
BLAKE2b-256 | faa764083224432062dbb167bb395cdd8120c2908843ce39eb3cfb4a10904f2a |