# eth-hash
[![Join the conversation on Discord](https://img.shields.io/discord/809793915578089484?color=blue&label=chat&logo=discord&logoColor=white)](https://discord.gg/GHryRvPB84)
[![Build Status](https://circleci.com/gh/ethereum/eth-hash.svg?style=shield)](https://circleci.com/gh/ethereum/eth-hash)
[![PyPI version](https://badge.fury.io/py/eth-hash.svg)](https://badge.fury.io/py/eth-hash)
[![Python versions](https://img.shields.io/pypi/pyversions/eth-hash.svg)](https://pypi.python.org/pypi/eth-hash)
[![Docs build](https://readthedocs.org/projects/eth-hash/badge/?version=latest)](https://eth-hash.readthedocs.io/en/latest/?badge=latest)
The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3
Note: the similarly named [pyethash](https://github.com/ethereum/ethash)
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()`](https://eth-utils.readthedocs.io/en/stable/utilities.html#keccak-bytes-int-bool-text-str-hexstr-str-bytes)
which will be a little friendlier, and provide access to other helpful utilities.
Read the [documentation](https://eth-hash.readthedocs.io/).
[View the change log](https://eth-hash.readthedocs.io/en/latest/release_notes.html).
## Installation
```sh
python -m pip install "eth-hash[pycryptodome]"
```
```py
>>> 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](http://eth-hash.readthedocs.io/en/latest/quickstart.html#quickstart)
for more about choosing and installing backends.
Raw data
{
"_id": null,
"home_page": "https://github.com/ethereum/eth-hash",
"name": "eth-hash",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.8",
"maintainer_email": null,
"keywords": "ethereum",
"author": "The Ethereum Foundation",
"author_email": "snakecharmers@ethereum.org",
"download_url": "https://files.pythonhosted.org/packages/ee/38/577b7bc9380ef9dff0f1dffefe0c9a1ded2385e7a06c306fd95afb6f9451/eth_hash-0.7.1.tar.gz",
"platform": null,
"description": "# eth-hash\n\n[![Join the conversation on Discord](https://img.shields.io/discord/809793915578089484?color=blue&label=chat&logo=discord&logoColor=white)](https://discord.gg/GHryRvPB84)\n[![Build Status](https://circleci.com/gh/ethereum/eth-hash.svg?style=shield)](https://circleci.com/gh/ethereum/eth-hash)\n[![PyPI version](https://badge.fury.io/py/eth-hash.svg)](https://badge.fury.io/py/eth-hash)\n[![Python versions](https://img.shields.io/pypi/pyversions/eth-hash.svg)](https://pypi.python.org/pypi/eth-hash)\n[![Docs build](https://readthedocs.org/projects/eth-hash/badge/?version=latest)](https://eth-hash.readthedocs.io/en/latest/?badge=latest)\n\nThe Ethereum hashing function, keccak256, sometimes (erroneously) called sha3\n\nNote: the similarly named [pyethash](https://github.com/ethereum/ethash)\nhas a completely different use: it generates proofs of work.\n\nThis is a low-level library, intended to be used internally by other Ethereum tools.\nIf you're looking for a convenient hashing tool, check out\n[`eth_utils.keccak()`](https://eth-utils.readthedocs.io/en/stable/utilities.html#keccak-bytes-int-bool-text-str-hexstr-str-bytes)\nwhich will be a little friendlier, and provide access to other helpful utilities.\n\nRead the [documentation](https://eth-hash.readthedocs.io/).\n\n[View the change log](https://eth-hash.readthedocs.io/en/latest/release_notes.html).\n\n## Installation\n\n```sh\npython -m pip install \"eth-hash[pycryptodome]\"\n```\n\n```py\n>>> from eth_hash.auto import keccak\n>>> keccak(b'')\nb\"\\xc5\\xd2F\\x01\\x86\\xf7#<\\x92~}\\xb2\\xdc\\xc7\\x03\\xc0\\xe5\\x00\\xb6S\\xca\\x82';{\\xfa\\xd8\\x04]\\x85\\xa4p\"\n```\n\nSee the [docs](http://eth-hash.readthedocs.io/en/latest/quickstart.html#quickstart)\nfor more about choosing and installing backends.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "eth-hash: The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3",
"version": "0.7.1",
"project_urls": {
"Homepage": "https://github.com/ethereum/eth-hash"
},
"split_keywords": [
"ethereum"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ebdbf8775490669d28aca24871c67dd56b3e72105cb3bcae9a4ec65dd70859b3",
"md5": "8062d187cce02a3972202feb4867a282",
"sha256": "0fb1add2adf99ef28883fd6228eb447ef519ea72933535ad1a0b28c6f65f868a"
},
"downloads": -1,
"filename": "eth_hash-0.7.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8062d187cce02a3972202feb4867a282",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.8",
"size": 8028,
"upload_time": "2025-01-13T21:29:19",
"upload_time_iso_8601": "2025-01-13T21:29:19.365281Z",
"url": "https://files.pythonhosted.org/packages/eb/db/f8775490669d28aca24871c67dd56b3e72105cb3bcae9a4ec65dd70859b3/eth_hash-0.7.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ee38577b7bc9380ef9dff0f1dffefe0c9a1ded2385e7a06c306fd95afb6f9451",
"md5": "ea81c2690fc432ca346dce2aa182a341",
"sha256": "d2411a403a0b0a62e8247b4117932d900ffb4c8c64b15f92620547ca5ce46be5"
},
"downloads": -1,
"filename": "eth_hash-0.7.1.tar.gz",
"has_sig": false,
"md5_digest": "ea81c2690fc432ca346dce2aa182a341",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.8",
"size": 12227,
"upload_time": "2025-01-13T21:29:21",
"upload_time_iso_8601": "2025-01-13T21:29:21.765683Z",
"url": "https://files.pythonhosted.org/packages/ee/38/577b7bc9380ef9dff0f1dffefe0c9a1ded2385e7a06c306fd95afb6f9451/eth_hash-0.7.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-13 21:29:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ethereum",
"github_project": "eth-hash",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"circle": true,
"tox": true,
"lcname": "eth-hash"
}