Skip to content

MHash ctypes bindings for python3 and python2

License

Notifications You must be signed in to change notification settings

stevenxxiu/py-mhash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-mhash

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

Bitdeli badge

About

MHash ctypes bindings for python3 and python2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%