Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceAlgorithmssha-3

SHA-3 and SHAKE

The Keccak-based hash functions SHA3-224 to SHA3-512 and the SHAKE128 and SHAKE256 extendable-output functions, specified in FIPS 202. ML-KEM and ML-DSA use them internally, SLH-DSA can use them, and they serve as an alternative to SHA-2. Grover's search would roughly halve its effective security, so 256-bit outputs stay 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.

19 in the catalogue

Packages that provide it

Packages that provide SHA-3 and SHAKE
PackageProvides
@noble/hashesnpmPure 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-wasmnpmHash 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-sha3npmPure JavaScript SHA-3, Keccak, SHAKE, cSHAKE and KMAC hash functions.
keccaknpmNative 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.
libsodium-wrappersnpmlibsodium compiled to WebAssembly and JavaScript with generated wrappers: X25519, Ed25519, XSalsa20-Poly1305 and ChaCha20-Poly1305 encryption, BLAKE2b, SHA-2, SHA-3, HMAC, Argon2 password hashing, ML-KEM-768 and the X-Wing hybrid KEM.
libsodium-wrappers-sumonpmThe sumo build of libsodium.js: everything in libsodium-wrappers plus scrypt password hashing and lower-level functions.
@peculiar/webcryptonpmWebCrypto API implementation for Node.js on top of the built-in crypto module, adding curves such as secp256k1, brainpool, Ed448 and X448 and non-standard mechanisms such as DES and RSAES-PKCS1-v1_5.
aws-lc-rscrates.ioring-compatible Rust API over the AWS-LC C library, adding ML-KEM, ML-DSA, RSA encryption, raw AES modes and an optional FIPS build.
aws-lc-syscrates.ioLow-level generated FFI bindings to the AWS-LC C cryptography library, which aws-lc-rs wraps.
opensslcrates.ioRust bindings to OpenSSL covering TLS, X.509, RSA, DSA, Diffie-Hellman, elliptic curve and Edwards curve keys, symmetric ciphers, hashes, MACs and key derivation.
openssl-syscrates.ioRaw FFI declarations for the OpenSSL C library, used by the openssl crate.
botancrates.ioRust wrapper for the Botan C++ library, exposing ciphers, hashes, MACs, KDFs, password hashing, random generators, X.509 and classical and post-quantum public key algorithms.
libcruxcrates.ioRe-export crate for the libcrux library of formally verified implementations, including ML-KEM, ML-DSA, X25519, P-256 ECDSA and ECDH, Ed25519, RSA-PSS, AES-GCM, ChaCha20-Poly1305, SHA-2, SHA-3, BLAKE2, HMAC, HKDF and HPKE.
orioncrates.ioPure Rust library offering ML-KEM, ML-DSA, X-Wing, HPKE, X25519, (X)ChaCha20-Poly1305, BLAKE2b, BLAKE3, SHA-2, SHA-3, HMAC, HKDF, PBKDF2, Argon2 and scrypt.
dryoccrates.ioPure Rust libsodium-compatible library with crypto_box, secretbox, Ed25519 signatures, BLAKE2b, SHA-2, SHA-3, HMAC, HKDF, Argon2 password hashing, ML-KEM-768, X-Wing and HPKE sealed boxes.
sha3crates.ioPure Rust SHA3-224, SHA3-256, SHA3-384 and SHA3-512, plus the original Keccak variants including Keccak-256.
tiny-keccakcrates.ioImplementation of Keccak-derived functions: SHA-3, original Keccak, SHAKE, cSHAKE, KMAC, TupleHash, ParallelHash and KangarooTwelve.
sequoia-openpgpcrates.ioOpenPGP (RFC 9580 and RFC 4880) implementation with RSA, DSA, ECDSA, ECDH, EdDSA, X25519 and X448 keys, post-quantum ML-KEM, ML-DSA and SLH-DSA algorithms, AES and SHA-1, SHA-2 and SHA-3 hashes.
bitcoin_hashescrates.ioThe hash functions used by rust-bitcoin: SHA-1, SHA-256 (plain, double and tagged), SHA-384, SHA-512, SHA3-256, RIPEMD-160 and HASH160, plus HMAC, HKDF and SipHash.

1 listed

Sources

Full record

Identifier
sha-3
Kind
hash
Family
Hash
Rests on
hash function security
Quantum effect
Weakened by Grover's search

Standards