Skip to main content

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

Project description

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

Releases

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.

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

hashtools-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file hashtools-0.2.0.tar.gz.

File metadata

  • Download URL: hashtools-0.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for hashtools-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7c8ab452534c2cdd0597a16b54e3828eabdb2ba63559e7a53ba1a0b99c342360
MD5 0a4ceaaa954ae20102b4d1b7edc76876
BLAKE2b-256 88d3c9f4a892707c97824103ede528e5a482a46b1d080c811c03e5ccff23fca5

See more details on using hashes here.

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