Skip to main content

hashtools

Hash tools collection, like md5, sha1, sha256 and many other hash tools.

Install

pip install hashtools

Commands

Windows Python 2.7

  • dsa
  • dsa_sha
  • dsaencryption
  • dsawithsha
  • ecdsa_with_sha1
  • md4
  • md5
  • ripemd160
  • sha
  • sha1
  • sha224
  • sha256
  • sha384
  • sha512
  • whirlpool

Linux Python 2.7

  • dsa
  • dsasha
  • dsaencryption
  • dsawithsha
  • ecdsawithsha1
  • md4
  • md5
  • ripemd160
  • sha
  • sha1
  • sha224
  • sha256
  • sha384
  • sha512
  • whirlpool

Linux Python 3.6

  • blake2b
  • blake2s
  • dsa
  • dsa_sha
  • dsaencryption
  • dsawithsha
  • ecdsa_with_sha1
  • md4
  • md5
  • ripemd160
  • sha
  • sha1
  • sha224
  • sha256
  • sha384
  • sha3_224
  • sha3_256
  • sha3_384
  • sha3_512
  • sha512
  • shake_128
  • shake_256
  • whirlpool

About SHAKE algorithms

  • You must give output length, default to 1024.

Usage

C:\Code\hashtools>md5 --help
Usage: MD5 [OPTIONS] [FILENAMES]...

Options:
-v, --verbose         Show filename or not.
-c, --concat          Concat all files to one file, and get only one hash
                        code.
-l, --length INTEGER  Output length for SHAKE object.
--help                Show this message and exit.

C:\Code\hashtools>sha1 --help
Usage: sha1 [OPTIONS] [FILENAMES]...

Options:
-v, --verbose         Show filename or not.
-c, --concat          Concat all files to one file, and get only one hash
                        code.
-l, --length INTEGER  Output length for SHAKE object.
--help                Show this message and exit.

Usage

C:\Data\hashtools\test>echo msg | md5
b47d94f422d2032dac746f8b6cb263a5

C:\Data\hashtools\test>echo msg | md5 -v
b47d94f422d2032dac746f8b6cb263a5 *-

C:\Data\hashtools\test>echo msg | sha256
c7b6fcf29e713727bdea4c283d816c42cce9a0b4cb08484223f3b9b45256ec59

C:\Data\hashtools\test>echo msg > a.txt

C:\Data\hashtools\test>type a.txt
msg

C:\Data\hashtools\test>md5 a.txt
b47d94f422d2032dac746f8b6cb263a5

C:\Data\hashtools\test>md5 a.txt -v
b47d94f422d2032dac746f8b6cb263a5 *a.txt

Bug report

Please report any issues at https://github.com/zencore-cn/zencore-issues.

Releases

v0.3.0 2020-06-24

  • Add base64 output format.

v0.2.0 2019-11-05

  • Fix entry_points install way.
  • Add star before filename in verbose mode.
  • Fix SHAKE algorithms, set default output length to 1024, and you can set it with option --length.

v0.1.2 2019-04-07

  • First release of hashtools.

Metadata

Release files for hashtools 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hashtools 0.3.0
File Size Uploaded Provenance Actions
hashtools-0.3.0.tar.gz 5.1 kB Without provenance Details for hashtools-0.3.0.tar.gz

Release files / hashtools-0.3.0.tar.gz

Download URL hashtools-0.3.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9f2a15032f855c90709cdbd8d9e0e5a111604d55f289f59cbdd17d4e627522a
BLAKE2b-256 checksum
How to use checksums
eee85aece55f81dc3a13f644aa49a10d068456d2d8ed62e6c20e30088b3639b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

Security for hashtools 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page