Skip to main content

eth-hash

Join the conversation on Discord Build Status PyPI version Python versions Docs build

The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3

Note: the similarly named pyethash has a completely different use: it generates proofs of work.

This is a low-level library, intended to be used internally by other Ethereum tools. If you're looking for a convenient hashing tool, check out eth_utils.keccak() which will be a little friendlier, and provide access to other helpful utilities.

Read the documentation.

View the change log.

Installation

python -m pip install "eth-hash[pycryptodome]"
>>> from eth_hash.auto import keccak
>>> keccak(b'')
b"\xc5\xd2F\x01\x86\xf7#<\x92~}\xb2\xdc\xc7\x03\xc0\xe5\x00\xb6S\xca\x82';{\xfa\xd8\x04]\x85\xa4p"

See the docs for more about choosing and installing backends.

Release files for eth-hash 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eth-hash 0.8.0
File Size Uploaded
eth_hash-0.8.0.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eth-hash 0.8.0
File Interpreter ABI Platform
eth_hash-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.2 kB

Release files / eth_hash-0.8.0.tar.gz

Download URL eth_hash-0.8.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b009752b620da2e9c7668014849d1f5fadbe4f138603f1871cc5d4ca706896b1
BLAKE2b-256 checksum
How to use checksums
3cf5c67fc24f2f676aa9b7ab29679d44f113f314c817207cd4319353356f62da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release files / eth_hash-0.8.0-py3-none-any.whl

Download URL eth_hash-0.8.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
523718a51b369ab89866b929a5c93c52978cd866ea309192ad980dd8271f9fac
BLAKE2b-256 checksum
How to use checksums
8787b36792150ca0b28e4df683a34be15a61461ca0e349e5b5cf3ec8f694edb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page