IntelligenceAlgorithmskeccak-256
Keccak-256
The original Keccak hash with a 256-bit output, as submitted to the SHA-3 competition before FIPS 202 changed its padding, so its outputs differ from SHA3-256. Ethereum uses it for addresses, transaction hashes, function selectors and storage keys. Grover's search would roughly halve its effective security, so its 256-bit output stays adequate.
In short
What a quantum computer changes.
- Quantum effect
- Weakened by Grover's search
- Family
- HashRests on hash function security.
- What it means
- Grover's algorithm searches an unstructured space in roughly the square root of the usual number of steps. Against a symmetric key or a hash preimage, that roughly halves the effective security in bits: a 128-bit key gives about 64 bits of security against it. In practice the answer is size, not replacement. Keys and outputs of 256 bits stay adequate. Grover's search also needs a long, sequential run on a fault-tolerant machine and does not split well across many machines, so the effect is a smaller margin, not a break.
This describes the family, not any project that uses it.
32 in the catalogue
Packages that provide it
| Package | Provides |
|---|---|
| @noble/hashesnpm | Pure TypeScript hash, MAC and KDF library: SHA-1, SHA-2, SHA-3 and Keccak, BLAKE2 and BLAKE3, RIPEMD-160, HMAC, HKDF, PBKDF2, scrypt and Argon2. |
| hash-wasmnpm | Hash and password-hashing functions compiled to WebAssembly, including SHA-1, SHA-2, SHA-3, Keccak, BLAKE2, BLAKE3, RIPEMD-160, HMAC, PBKDF2, scrypt, bcrypt and Argon2. |
| js-sha3npm | Pure JavaScript SHA-3, Keccak, SHAKE, cSHAKE and KMAC hash functions. |
| keccaknpm | Native bindings to the Keccak Code Package with a pure JavaScript fallback, providing Keccak-224 to Keccak-512, SHA3-224 to SHA3-512 and SHAKE through a Node-style hash interface. |
| crypto-jsnpm | Pure JavaScript library of hashes, HMAC, PBKDF2 and ciphers: MD5, SHA-1, SHA-2, a Keccak function it calls SHA3, RIPEMD-160, AES, TripleDES, RC4 and Rabbit. |
| ethersnpm | Ethereum library with secp256k1 signing, recovery and ECDH, Keccak-256, SHA-2, RIPEMD-160, HMAC, PBKDF2 and scrypt helpers, BIP-39 and BIP-32 wallets, and encrypted JSON keystores. |
| @ethersproject/json-walletsnpm | The ethers v5 sub-package that encrypts and decrypts Ethereum keystore and crowdsale JSON wallets with scrypt or PBKDF2, AES and a Keccak-256 MAC. |
| web3npm | Ethereum JavaScript API whose accounts module signs with secp256k1, hashes with Keccak-256 and encrypts V3 keystores with scrypt or PBKDF2 and AES-128-CTR. |
| web3-eth-accountsnpm | The web3.js accounts package: secp256k1 signing and recovery, Keccak-256 message hashing, and V3 keystores encrypted with scrypt or PBKDF2 and AES-128-CTR. |
| viemnpm | TypeScript Ethereum interface with secp256k1 local accounts, BIP-39 and BIP-32 accounts, WebAuthn P-256 accounts, and Keccak-256, SHA-256 and RIPEMD-160 utilities. |
| ethereum-cryptographynpm | Collection of the primitives Ethereum uses: secp256k1, BN254 and BLS12-381 curves, Keccak, SHA-2, RIPEMD-160, BLAKE2b, PBKDF2, scrypt, AES, BIP-32, BIP-39 and random bytes. |
| @ethereumjs/utilnpm | EthereumJS shared utilities, including secp256k1 signature recovery and validation and EIP-7702 authorization signing. |
| ethereumjs-utilnpm | The pre-scoped EthereumJS utility package with Keccak, SHA-256 and RIPEMD-160 hashing and secp256k1 signing and recovery. |
| @ethereumjs/walletnpm | EthereumJS wallet utilities for secp256k1 key creation, BIP-32 HD keys and V3 keystores encrypted with scrypt or PBKDF2 and AES. |
| ethereumjs-walletnpm | The former name of the EthereumJS wallet package: secp256k1 keys and V3 keystores encrypted with scrypt or PBKDF2 and AES. |
| @metamask/eth-sig-utilnpm | MetaMask signing functions for personal_sign, EIP-712 typed data and EIP-7702 authorizations over secp256k1, plus x25519-xsalsa20-poly1305 message encryption. |
| eth-sig-utilnpm | The former MetaMask package for personal_sign and EIP-712 typed data signing and recovery over secp256k1. |
| micro-eth-signernpm | Minimal Ethereum library for secp256k1 transaction and message signing, legacy and EIP-2335 keystores, EIP-2333 key derivation, and KZG and PeerDAS blob commitments. |
| eth-cryptonpm | Ethereum helper library for secp256k1 identities, signing and recovery, Keccak-256 hashing, and ECIES encryption to public keys. |
| @scure/starknetnpm | Starknet cryptography: ECDSA over the Stark curve, Pedersen and Poseidon hashes, and Starknet Keccak. |
| starknetnpm | Starknet JavaScript SDK with Stark curve signing, Pedersen, Poseidon and Keccak hashing, and an Ethereum secp256k1 signer for accounts. |
| @polkadot/util-cryptonpm | Polkadot crypto utilities: sr25519, Ed25519 and secp256k1 keys and signatures, BLAKE2, Keccak, SHA-2, HMAC, PBKDF2, scrypt, NaCl secretbox and encrypted JSON. |
| @polkadot/wasm-cryptonpm | WebAssembly build of the Rust primitives behind @polkadot/util-crypto: sr25519, Ed25519, secp256k1, BLAKE2b, Keccak, SHA-2, HMAC, PBKDF2, scrypt and BIP-39. |
| @cosmjs/cryptonpm | CosmJS cryptography: secp256k1 and Ed25519 signing, SHA-2, Keccak-256, RIPEMD-160, HMAC, BIP-39, SLIP-10, Argon2id and XChaCha20-Poly1305. |
| sha3crates.io | Pure Rust SHA3-224, SHA3-256, SHA3-384 and SHA3-512, plus the original Keccak variants including Keccak-256. |
| tiny-keccakcrates.io | Implementation of Keccak-derived functions: SHA-3, original Keccak, SHAKE, cSHAKE, KMAC, TupleHash, ParallelHash and KangarooTwelve. |
| alloy-primitivescrates.io | Ethereum primitive types for Alloy, including a Keccak-256 helper, EIP-191 message hashing and an ECDSA secp256k1 signature type with public key and address recovery. |
| etherscrates.io | The ethers-rs Ethereum client library, which signs transactions with secp256k1 ECDSA and hashes with Keccak-256 through its sub-crates. |
| ethers-corecrates.io | Ethereum types and utilities for ethers-rs, including Keccak-256 hashing and secp256k1 ECDSA signature types with recovery. |
| eth-keystorecrates.io | Encrypted JSON keystores in the Web3 Secret Storage format: scrypt or PBKDF2 key derivation, AES-128-CTR encryption and a Keccak-256 MAC. |
| sp-corecrates.io | Shared Substrate and Polkadot SDK types, including sr25519, Ed25519 and secp256k1 ECDSA key pairs and signatures and Blake2 and Keccak hashers. |
| solana-sdkcrates.io | The Solana client SDK: Ed25519 keypairs and 64-byte Ed25519 transaction signatures, with SHA-256, Keccak-256 and BLAKE3 hashing modules. |
2 listed
Sources
- Keccak Team: Keccakkeccak.teamRetrieved 3 December 2026
- FIPS 202: SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functionscsrc.nist.govRetrieved 3 December 2026
Full record
- Identifier
- keccak-256
- Kind
- hash
- Family
- Hash
- Rests on
- hash function security
- Quantum effect
- Weakened by Grover's search
Standards
No standard is listed for this algorithm.