Multihash implementation in Python
Free software: MIT license
Documentation: https://multihash.readthedocs.io.
Python versions: Python 3.10, 3.11, 3.12, 3.13, 3.14
Features
Support for 125+ hash functions including:
Cryptographic hashes: SHA-1, SHA-2 (224/256/384/512), SHA-3, BLAKE2b, BLAKE2s, BLAKE3
Variable-length hashes: SHAKE-128, SHAKE-256
Non-cryptographic hashes: MurmurHash3 (32-bit and 128-bit)
Specialized hashes: Double-SHA-256 (Bitcoin), Keccak, and more
BLAKE2 variants: Full range of digest sizes (8-512 bits for BLAKE2b, 8-256 bits for BLAKE2s)
Streaming hash computation for large files
Hash truncation support
JSON serialization
MultihashSet collection type
Go-compatible API (sum(), digest(), verify())
Quick Start
from multihash import digest, sum, Func
# Using modern hash functions
mh = digest(b"hello world", "blake3")
# Using MurmurHash3 for fast, non-cryptographic hashing
mh = digest(b"data", "murmur3-128")
# Using BLAKE2b with custom digest size
mh = digest(b"data", "blake2b-256")
# Go-compatible API
mh = sum(b"hello world", Func.sha2_256)
print(mh.encode('hex'))
For more examples and usage, see the documentation.
Metadata
Release files for py-multihash 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| py_multihash-3.0.0.tar.gz | 41.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_multihash-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.8 kB
Release files / py_multihash-3.0.0.tar.gz
| Download URL | py_multihash-3.0.0.tar.gz |
|---|---|
| Size | 41.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e848941de5ef0533ca26b81940e2ffcf7b4322a3f803e8c97f4f0eca8767aa7
|
|
BLAKE2b-256 checksum How to use checksums |
113ded68b0eccd0654f7f3c163d9b3d428f903e5e3e884ab1f0d0a16ba6a4f11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.4
|
Release files / py_multihash-3.0.0-py3-none-any.whl
| Download URL | py_multihash-3.0.0-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3863ec1313b4eac1e5169137c143d40bf77456e57388f839441deba089f87326
|
|
BLAKE2b-256 checksum How to use checksums |
24e2d65606db8369916fb5a9b4fe14df7e6072970d919300f3fb1c989a1d8e7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.4
|
Security for py-multihash 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.