eth-hash
eth-hash: The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3
Decision gist · record as of 2026-08-14
Yes, if you are building Ethereum protocol-level tools or libraries that need keccak256 and want a lightweight, actively maintained wrapper. No, if you are writing application code—use higher-level alternatives instead. The package has no known vulnerabilities, low install friction, and permissive licensing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; you must install a backend extra for the hashing implementation to work.
- Low install friction; pure Python wheel with no compiled dependencies.
- Actively maintained with recent releases and a stable repository.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive); you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-03-25 (142 days) · last repo commit 2026-03-25 · 110 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,844,184 downloads/mo, #1,836 on PyPI
Alternatives
Verify before relying
pip install eth-hash[pycryptodome]
from eth_hash.auto import keccak
result = keccak(b'')- Whether the auto backend selection handles all deployment environments gracefully or requires explicit backend configuration in some cases.
- Performance characteristics compared to alternative keccak implementations.
- Which specific backends are available and their relative performance trade-offs.
What it is and what it does
eth-hash is a low-level wrapper around the keccak256 hashing algorithm, the cryptographic hash function used throughout the Ethereum protocol. It abstracts over multiple backend implementations, allowing you to choose which one to use based on your environment and needs. The package is designed as an internal dependency for other Ethereum tools rather than as a user-facing library—the documentation suggests using higher-level alternatives for application code.
The package has no runtime dependencies by default; you install it with an extra to specify which cryptographic backend to use. It supports Python 3.10 through 3.14 and is actively maintained with recent releases. The API is minimal: import from eth_hash.auto and call it with bytes to get the hash.
Use it for
- Computing Ethereum address checksums and transaction hashes within wallet or node software.
- Verifying Ethereum smart contract bytecode and state root hashes in light clients or validators.
- Building low-level Ethereum protocol tools that need direct access to keccak256 without higher-level abstractions.
- Integrating keccak hashing into cryptographic libraries or frameworks that wrap Ethereum functionality.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building Ethereum protocol-level tools or libraries that need keccak256 and want a lightweight, actively maintained wrapper.
No, if you are writing application code—use higher-level alternatives instead. The package has no known vulnerabilities, low install friction, and permissive licensing.
Install
eth-hash on PyPI
Before you install
Low install friction; pure Python wheel with no compiled dependencies. Actively maintained with recent releases and a stable repository.
Requires Python 3.10 or later; you must install a backend extra for the hashing implementation to work.
License in practice
MIT license (permissive); you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install eth-hash[pycryptodome]
from eth_hash.auto import keccak
result = keccak(b'')
Verify before relying
- Whether the auto backend selection handles all deployment environments gracefully or requires explicit backend configuration in some cases.
- Performance characteristics compared to alternative keccak implementations.
- Which specific backends are available and their relative performance trade-offs.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 142 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,844,184 / month, #1,836 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: eth_hash-0.8.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ethereum keccak256 hashing”
- eth-hashProvides the keccak256 hashing function used by Ethereum through a…
- eip712Provides Python message classes for EIP-712 typed structured data…
- poly-eip712-structsConstructs and serializes EIP-712 structured data for Ethereum…
Give your agent the search over MCP, or paste the wish link into any chat.
More Cryptography packages
Certifi provides Mozilla's curated collection of root SSL certificates for Python applications to validate TLS hosts and verify certificate trustworthiness.
cryptography provides cryptographic recipes and low-level primitives for symmetric encryption, message digests, key derivation, and other common cryptographic algorithms in Python.
Pure-Python RSA encryption, decryption, signing, and key generation following PKCS#1 v1.5, with command-line and library interfaces.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
Provides Microsoft Entra ID token-based authentication for Azure SDK clients through a set of TokenCredential implementations that handle OAuth flows and managed identity support.
PyNaCl provides Python bindings to libsodium for digital signatures, secret-key and public-key encryption, hashing, message authentication, and password-based key derivation.
See also pysha3 · safe-pysha3 · faster-eth-utils · eth-keys · eth-typing · py-multihash · eip712 · dict-hash · eth-account · siphash