Skip to main content

eth-hash: The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eth_hash-0.8.0b1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eth_hash-0.8.0b1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file eth_hash-0.8.0b1.tar.gz.

File metadata

  • Download URL: eth_hash-0.8.0b1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for eth_hash-0.8.0b1.tar.gz
Algorithm Hash digest
SHA256 612c88620ae31985056c6e9492d12563faf062cfaf406ba2e41cdb7e77fb3113
MD5 69e4292e7a309ad850ff66686b447496
BLAKE2b-256 6f100e9b975f6cd3c2188cd354b504e3f38b63a87b7455462a5a801f40a4c6df

See more details on using hashes here.

File details

Details for the file eth_hash-0.8.0b1-py3-none-any.whl.

File metadata

  • Download URL: eth_hash-0.8.0b1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for eth_hash-0.8.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1fd2b4db5b2cfd7f5b09c20ceab30b2cf6225b4b8142ba95fd5a57a9ce2a42e
MD5 85a794e3431cf7122ec5f6d4eef137dc
BLAKE2b-256 d0e566f66af799935831cf70dae30604ee4ed7e8aa691aa0f065d6a6497b2d6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page