SHA-3
The newest family of standard hash functions from NIST, built on a different design called Keccak as a backup in case SHA-2 is ever weakened.
In more detail
NIST published SHA-3 in 2015 as FIPS 202, with the same output sizes as SHA-2, such as SHA3-256. Its sponge design is not open to length extension attacks, although SHA-256 remains secure and far more widely used. The standard also defines extendable-output functions that can produce a digest of any length.
Examples
hashlib.new("sha3_256", a).digest()123 of 256 bits differRelated terms
- SHA-256 — A widely used hash function that turns any data into a 256-bit fingerprint, shown as 64 hexadecimal characters.
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
- length extension attack — An attack on hashes such as SHA-256 that lets someone who knows hash(secret + message) compute a valid hash for that message with extra data added, without the secret.
- avalanche effect — The property of a good hash function or cipher that changing a single input bit changes about half of the output bits, in an unpredictable way.
Taught in
- Cryptographic Hashing: SHA-256, SHA-3 & Passwords — Cybersecurity Fundamentals, GRC & Cryptography