SHA-3 & Keccak Hash Generator

SHA-3 & Keccak Hash Generator: Executes Keccak-256 sponge construction hashing and extracts the first 4 bytes as function selector.

Sha3 Keccak Hash · Client runtimeSandboxed
Formatted results will render here in real time.

About this sha-3 & keccak hash generator

Executes Keccak-256 sponge construction hashing and extracts the first 4 bytes as function selector Runs entirely in-memory using Web Crypto primitives to keep sensitive tokens, certificates, and cryptographic keys secure from third-party interception.

Encoding & cryptographic principles

Computes SHA3-256 for plain input. If the input contains both '(' and ')' or the secondary value requests keccak or eth, it instead computes Keccak-256 and displays the first four digest bytes as a selector. It does not validate a function signature or inspect a contract.

Worked verification example

Scenario: Calculate the Keccak-256 value and selector for one ABI-style function signature.

Sample input:

transfer(address,uint256)

Processing: When the input contains parentheses, the handler uses Keccak-256 and returns the first four digest bytes as a selector.

Illustrative output:

Keccak-256: a9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b Function Selector: 0xa9059cbb

Security parameters & input constraints

The page does not expose a separate algorithm selector: any input containing both parentheses switches to Keccak-256 automatically, even if it is not a function signature. The selector is the first four digest bytes, not an ABI validation. It hashes UTF-8 text, not uploaded files, and SHA3-256 and Keccak-256 have different padding.

Cryptographic digests, encoded strings, and signatures generated by SHA-3 & Keccak Hash Generator should be verified against target authentication systems before production use.

Client-side Web Crypto boundary

Key derivation, hashing, and encoding in SHA-3 & Keccak Hash Generator execute in local memory using Web Crypto APIs without remote socket transmission.

Cryptographic specifications & RFC standards

Technical specifications and cryptographic RFC standards governing algorithms and key representations:

SHA-3 & Keccak Hash Generator verification · Audit standards

How to use it

  1. Enter text in the input box.
  2. Run locally: plain text yields SHA3-256, while text containing both '(' and ')' triggers Keccak-256 and a four-byte selector.
  3. Read or copy the hexadecimal digest or the two-line Keccak result.

Frequently asked questions

When does this tool return SHA3-256 or Keccak-256?+

It returns SHA3-256 by default. If the second value contains `keccak` or `eth`, or the input contains both `(` and `)`, it returns `Keccak-256` plus an Ethereum-style four-byte function selector.

What local example can I run?+

Enter `abc` with an empty second value → `3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532`. Enter `balanceOf(address)` → selector `0x70a08231`.

Are SHA3 and Keccak interchangeable?+

No. They use different padding. Choose the exact variant expected by the protocol; an ABI-looking input automatically selects the Keccak result in this tool.

Does either digest encrypt or authenticate text?+

No. A digest neither encrypts, proves authorship, nor supplies a secret key or signature.