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.

Files for hashtools, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size hashtools-0.2.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page