Skip to content

olivmath/keccaky

Repository files navigation

Keccaky

Secure and easy-to-use keccak

✅ ready for production!!!

Roadmap

  • Create Keccak 256 hash
  • Create massive tests agains pycryptodome (575 tests)
  • Create benchmark tests agains pycryptodome
  • API made easy for client
  • Docs for dev
  • Re-write Keccak algorithm in Rust using FFI

Docs

INSTALL

pip install keccaky
poetry add keccaky

USE

from keccaky import hash_it_bytes
from keccaky import ethereum_hash
from keccaky import hash_it


assert hash_it_bytes("keccaky".encode()).hex() == "ff7e4a2e488ac0d8ed435b41979a0c1defeae30231dc5338a1b3a39c86adfd3c"

assert ethereum_hash("keccaky") == "0xff7e4a2e488ac0d8ed435b41979a0c1defeae30231dc5338a1b3a39c86adfd3c"

assert hash_it("keccaky") == "ff7e4a2e488ac0d8ed435b41979a0c1defeae30231dc5338a1b3a39c86adfd3c"