← Cryptography guide

K051 / Hashes, MACs and key derivation

SHA-3

SHA-3 Keccak · Survey date 2026-12-05

SHA-3 is a family of hash functions for binary data, based on instances of Keccak.

CRYPTOGRAPHY LAB / K051

Cryptography Lab · SHA-3

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Limited implementation

SHA3-256 (Keccak-f[1600])

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Reference ↗

Open lab →

Definition and overview
SHA-3 is a family of hash functions for binary data, based on instances of Keccak. Source document ↗
Classification and reversibility
Hash algorithm mapping arbitrary-length messages to fixed-length digests. Source document ↗
Key or secret requirements
A keyed sponge is separately mentioned as a keyed construction. Source document ↗
Operating principle and structure
Not confirmed in the survey
Key size, block size and parameters
Sponge capacity c is described as twice the target collision/preimage resistance. Source document ↗
Security strength and recommendation
NIST recommends SHA-2 or SHA-3 to replace SHA-1. Source document ↗
Known attacks and vulnerabilities
Implementation vulnerabilities have been reported in NIST-approved algorithms including SHA-3, SHAKE and EdDSA. Source document ↗
Standards and certification
SHA-3 and SHAKE standardized in FIPS 202. Source document ↗
Typical uses
Used to generate SHA3-256 and Keccak-256 digests. Source document ↗
Implementations, libraries and tools
Open-source Keccak/SHA-3 implementations and code packages include XKCP. Source document ↗
Decryption or decoding
Not confirmed in the survey
Advantages
NIST standard; SHAKE XOF supports variable output lengths. Source document ↗
Limitations and cautions
SHA-3 and Keccak output may differ; beware implementation/name confusion. Source document ↗
Distinguishing encryption, encoding and hashing
Library name SHA3 may actually mean Keccak; distinguish from standard SHA-3. Source document ↗

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

SHA3-256 maps arbitrary messages to 256-bit digest; SHAKE produces requested length. File integrity compares stored and recomputed digests.

Procedure

Encryption transforms plaintext with key and reverses it; encoding changes representation reversibly. SHA-3 hashes, then compares/verifies digests without decryption. Distinguish keyed MAC/KMAC from ordinary hashing.

Scenario

Publish SHA3-256 file digests for download verification; digital signatures use message hashes. Ethereum compatibility requires distinguishing Keccak-256 from SHA3-256.

Pitfalls and alternatives

Do not try to decrypt SHA-3 or mix Keccak-256 with SHA3-256. Use Argon2/bcrypt-like KDFs for passwords, vetted libraries and implementation patches.

Diagram source ↗

References