docs | |
---|---|
tests |
Multihash implementation in Python
Multihash is a protocol for differentiating outputs from various well-established cryptographic hash functions, addressing size + encoding considerations.
It is useful to write applications that future-proof their use of hashes, and allow multiple hash functions to coexist. See jbenet/random-ideas#1 for a longer discussion.
MIT Licensed © 2018 Carson Farmer, 2016 Protocol Labs Inc.
pip install git+https://github.com/carsonfarmer/py-multihash
https://py-multihash.readthedocs.io/
See our contribution guidelines for a development workflow and details on how to contribute.
This package is a direct port of the official Node/Javascript version. As this projects matures, it may become more 'Pythonic'.
Obsolete and deprecated hash functions are included in this package. MD4, MD5 and SHA-1 should no longer be used for cryptographic purposes, but since many such hashes already exist they are included in the multihash specification and may be implemented in multihash libraries such as this one.