Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_pgp_check-0.2.8.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

python_pgp_check-0.2.8-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file python_pgp_check-0.2.8.tar.gz.

File metadata

  • Download URL: python_pgp_check-0.2.8.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for python_pgp_check-0.2.8.tar.gz
Algorithm Hash digest
SHA256 a1f99319d57e76689aa8b65483674de8a5a93a9fe5a943cef9dfe2b84453f703
MD5 c6eb3f6005066f4cba1d24c0f2354a92
BLAKE2b-256 f80b4514063240971c8c726a38dd5cb4692f3f4768a71a00d150af6a63fbb540

See more details on using hashes here.

Provenance

File details

Details for the file python_pgp_check-0.2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for python_pgp_check-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5112154df47f8a6163fa96ae65e7f680e9a8876719cb50efe1d266eb396e295d
MD5 d3dcae2197dded632145381017e3ef1d
BLAKE2b-256 70889c9ecc7cccf87806a361e04601dd7e6f65a9802386362f578ea428d07ae0

See more details on using hashes here.

Provenance

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