Skip to main content

Mhash ctypes bindings for Python.

Project description

Modern mhash bindings for Python (build with ctypes). It keeps the same interface as hashlib (part of the standard library)

Tested with: python >= 3.2, python >= 2.7, pypy >= 1.9

Actually supports all hash algorithms as mhash library: crc, md5, sha*, ripemd*, tiger*, haval*, gost, adler, whirlpool, snefru*

How install it?

You can install this module from python package index: pip install py-mhash

How use it?

Example of use gost hash algorithm:

>>> import mhashlib
>>> mhashlib.gost(b"hello").hexdigest()
'a7eb5d08ddf2363f1ea0317a803fcef81d33863c8b2f9f6d7d14951d229f4567'

Run tests

python -m unittest -vv

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

py-mhash-1.1.tar.gz (2.7 kB view hashes)

Uploaded Source

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