A CLI tool to verify file hashes
Project description
Python PGP Check
A quick python CLI tool to verify file PGP hashes
Installation and usage
Install it with python pip using
pip install python-pgp-check
Usage
Calculate Hash
to calculate the hash of a file:
python-pgp-check <file_path>
Verify Hash
To verify a file against an expected hash:
python-pgp-check <file_path> <expected_hash>
Specifying Hash Algorithm
By default, SHA-256 is used. To use a different algorithm:
python-pgp-check <file_path> [<expected_hash>] --algorithm <algorithm>
Supported algorithms: md5, sha1, sha256, sha512
Examples
Calculate SHA-256 hash:
python-pgp-check /path/to/file
Verify file with SHA-256 hash:
python-pgp-check /path/to/file 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8
Calculate MD5 hash:
python-pgp-check /path/to/file --algorithm md5
Verify file with SHA-512 hash:
python-pgp-check /path/to/file 3c9909afec25354d551dae21590bb26e38d53f2173b8d3dc3eee4c047e7ab1c1eb8b85103e3be7ba613b31bb5c9c36214dc9f14a42fd7a2fdb84856bca5c44c2 --algorithm sha512
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
Built Distribution
File details
Details for the file python_pgp_check-0.2.7.tar.gz
.
File metadata
- Download URL: python_pgp_check-0.2.7.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41aea06b04a697aec04150ffa67354a9c4185816fedaf15429454279d633252d |
|
MD5 | 5b60e717f39144d410986c001ab0dad1 |
|
BLAKE2b-256 | bd4b37a0705b5aea81caf194bdc958882cbd160aec3a9ea43564b741a9e3346a |
Provenance
File details
Details for the file python_pgp_check-0.2.7-py3-none-any.whl
.
File metadata
- Download URL: python_pgp_check-0.2.7-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 904a993fa71fe9ade10b711ecf53ea9b9e4f36c78b4e2ad838be40c1324ff499 |
|
MD5 | e6b50a3930343358c3a41b05b8ec883f |
|
BLAKE2b-256 | be6d1e43b8049fda192e2a41f5032aef79f00ecc9c4137abc4d82df2e5553e75 |