carsonfarmer / py-multihash

Multihash implementation in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

tests
Travis-CI Build Status Requirements Status
Coverage Status Coverage Status

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.

Notice

There are other Python implementations of multihash out there, including https://github.com/ivilata/pymultihash, https://github.com/multiformats/py-multihash, and at one point, https://github.com/tehmaze/python-multihash. These versions will likely be similar, with minor differences. Currently, it looks like https://github.com/ivilata/pymultihash is the one to use (see https://github.com/libp2p/py-libp2p).

License

MIT Licensed © 2018 Carson Farmer, 2016 Protocol Labs Inc.

Installation

pip install git+https://github.com/carsonfarmer/py-multihash

Contributing

This package is no longer maintained. If you'd like to contribute, see one of the options above, or fork this one!

Notes

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.

About

Multihash implementation in Python

License:MIT License


Languages

Language:Python 100.0%