SHA 3 explained in plain terms means understanding the newest hash standard: a completely different design from the SHA-2 family it sits beside, built on a sponge construction that absorbs data and squeezes out a hash of any length. The central question is why the world needed a new standard when SHA-2 was working fine, and the answer is insurance, because a break in SHA-2 would leave nothing to fall back on.
SHA-3 was chosen in a public competition that ran from 2007 to 2012, and its winner, Keccak, was designed by a team from Belgium and Italy. It shares nothing with SHA-2 except the name and the job, which is exactly the point: if SHA-2 ever falls, SHA-3 stands on entirely different mathematics.
Six things set it apart, and each one is worth knowing. This article works through all six, explains what SHA-3 is, how it works, and when to choose it over its older sibling.
Key takeaways
- SHA-3 is built on the Keccak sponge construction, not on SHA-2’s design.
- It produces hashes of 224, 256, 384, or 512 bits, plus variable-length output.
- It was chosen as insurance in case SHA-2 is ever broken.
- Its sponge design also powers extendable-output functions and stream ciphers.
- It is standardised, reviewed, and safe to use, though SHA-2 remains common.
What SHA-3 is
First, the sponge. SHA-3 absorbs input into a large internal state, stirring it with a fixed permutation, and then squeezes output out of the state, as much as the caller asks for. The metaphor is apt: the state soaks up data like a sponge, and the hash is wrung out of it, in as many bits as are needed.
Second, the permutation. The heart of Keccak is a permutation of a 1,600-bit state, built from five simple steps that mix, rotate, and combine the bits, repeated twenty-four times. The permutation has no secret key and no hidden structure, and its security rests on the fact that reversing it is as hard as the hash itself.
Third, the flexibility. Because the sponge can squeeze out any number of bits, SHA-3 comes in fixed sizes, SHA3-224, SHA3-256, SHA3-384, and SHA3-512, and in extendable-output forms, SHAKE128 and SHAKE256, which return as many bits as the caller requests. One construction serves every use, from a short checksum to a long stream of random-looking bytes.
Fourth, the separation from SHA-2. SHA-2 is built on the Merkle-Damgard construction, the same design as SHA-1 and MD5, and shares their structural weaknesses, including length-extension attacks. SHA-3’s sponge has no such weakness, and an attack on one family tells an attacker nothing about the other, which is the whole reason the standard exists.
Fifth, the competition that chose it. The National Institute of Standards and Technology ran a five-year public competition, received sixty-four submissions, and narrowed them to five finalists before choosing Keccak in 2012. The process was open, the cryptanalysis was public, and the winner emerged with its security arguments intact.
Sixth, the standard itself. SHA-3 was published as FIPS 202 in 2015, and it is now a full federal standard, supported in major libraries and hardware. It has not replaced SHA-2, and it was never meant to, because the two are meant to coexist as independent options.
Our guide to hashing explains the one-way functions SHA-3 belongs to, and our guide to AES encryption explains the block cipher that SHA-3 is often paired with in real systems.
How SHA-3 works
Everything starts with the state, a five-by-five grid of 64-bit words, 1,600 bits in total. The input is split into blocks, and each block is absorbed into part of the state, which is then stirred by the permutation before the next block arrives. The stirring is what mixes the input through the whole state, so that every output bit depends on every input bit.
Absorbing is the first phase. The message is padded, split into blocks of a fixed rate, and each block is exclusive-ored into the state, followed by a full run of the permutation. The rate determines how much of the state the input touches, and the rest of the state, called the capacity, is never directly touched by input, which is what protects the hash.
Squeezing is the second phase. Once all the input is absorbed, output is read from the state, and if more output is needed than one read provides, the permutation runs again and more is read. The extendable-output forms work exactly this way, returning as many bits as the caller asks for, which is why SHAKE is useful for generating keys and random streams.
The permutation is the engine, and it is built from five steps. Theta mixes columns together, rho rotates the words, pi rearranges them, chi combines them nonlinearly, and iota adds a round constant, and the five steps repeat twenty-four times. Each step is simple on its own, and their combination is what makes the permutation hard to reverse.
Security comes from the capacity, the part of the state the input never touches. An attacker who wants to find two messages with the same hash must effectively search the capacity, which is 512 bits for SHA3-256, and that search is far beyond any computer, classical or quantum, that exists or is foreseen.

Comparing SHA-3 with other hash functions
SHA-3 is one of several hash functions a designer can choose, and each was built with a different emphasis. SHA-2 is the workhorse, fast and widely supported, SHA-1 is broken and must never be used, and BLAKE2 is a fast modern design that never went through standardisation, and each approach trades speed for assurance in a different way.
The table below sets out the main contrasts between the leading approaches.
| Aspect | SHA-3 | SHA-2 | BLAKE2 |
|---|---|---|---|
| Construction | Sponge | Merkle-Damgard | HAIFA-based |
| Length extension | Immune | Vulnerable | Immune |
| Variable output | Yes, SHAKE | No | Yes |
| Speed in software | Moderate | Fast | Very fast |
| Best for | Insurance and flexibility | General hashing | High-speed hashing |
The practical result is that SHA-3 is the right choice where independence from SHA-2 matters, SHA-2 suits general hashing, and BLAKE2 fits the cases where speed is the priority.
Where SHA-3 is used
Government systems are the biggest users. Federal standards require approved hash functions, and SHA-3 is now one of them, which means government and defence systems can choose it wherever they previously had only SHA-2, and the diversity is itself a security benefit.
Blockchain projects use it for its flexibility. Ethereum’s Keccak-256, the original competition version of the design, is the hash behind its addresses and smart contracts, and the choice was made before SHA-3 was finalised, which is why Ethereum’s hash differs slightly from the standard.
Key derivation uses the extendable-output forms. SHAKE128 and SHAKE256 generate keys, random streams, and masks of any length, and their flexibility makes them useful wherever a fixed-length hash is the wrong shape for the job.
Post-quantum schemes depend on it heavily. Many of the new lattice and code-based designs use SHA-3 internally, both for hashing and for generating random values, and the standardisation of those schemes has pulled SHA-3 into far more systems than hashing alone ever would.
Embedded devices are adopting it slowly. Hardware support for SHA-3 is appearing in newer chips, and as it spreads, the speed gap with SHA-2 will close, which is the last barrier to SHA-3 becoming as common as its older sibling.
Strengths and limits
The greatest strength of SHA-3 is its independence. It shares no design with SHA-2, so a break in one family leaves the other standing, and that diversity is the reason the standard was created. It is insurance that has already paid for itself in confidence, even though the break it insures against has not happened.
It is also a strength that the sponge is flexible. One construction produces fixed hashes, variable-length output, key derivation, and stream generation, which means a system can standardise on a single primitive for many jobs, and that simplicity is worth a great deal in practice.
The limits are real, though, and the biggest is speed. SHA-3 is slower than SHA-2 in software on most platforms, and slower than BLAKE2 by a wide margin, which is why it has not replaced SHA-2 for everyday hashing. It is also less familiar to developers, which means more room for misuse.
SHA-3 checklist
- Use SHA-3 where independence from SHA-2 matters.
- Prefer SHA3-256 or SHA3-512 for ordinary hashing.
- Use SHAKE128 or SHAKE256 when output length must vary.
- Remember Ethereum uses Keccak-256, not standard SHA-3.
- Do not use SHA-1 or MD5 for anything, ever.
- Check library support before choosing SHA-3 for a project.
- Pair hashing with a proper message authentication code.
- Keep salt and context separate from the hash input.
- Revisit the choice yearly; the field moves on even when hashes do not.
Frequently asked questions
What is SHA-3 in simple terms?
It is the newest hash standard, built on the Keccak sponge construction, which absorbs a message into a large state and squeezes out a hash of any length.
Why was SHA-3 created when SHA-2 works fine?
As insurance. SHA-2 shares its design with SHA-1 and MD5, both of which were broken, so the world wanted a standard built on entirely different mathematics.
What is a sponge construction?
It is a design that absorbs input into a state, stirring it with a fixed permutation, and then squeezes output out of the state, in as many bits as the caller requests.
What is the difference between SHA-3 and Keccak?
Keccak is the design that won the competition, and SHA-3 is the standardised version, which differs in its padding. Ethereum uses the original Keccak padding, not the standard.
Should I use SHA-3 instead of SHA-2?
Either is fine for ordinary hashing. Choose SHA-3 when independence from SHA-2 matters, or when you need variable-length output, and SHA-2 when speed and familiarity matter more.
Is SHA-3 quantum resistant?
Largely, yes. Quantum computers speed up hash attacks, but doubling the output length restores the security, which is why SHA3-512 is the conservative choice.
The bottom line
SHA-3 explained in one line is this: a sponge that soaks up your message and squeezes out a hash, built on mathematics that shares nothing with the standard it sits beside.
It is the insurance policy the hash world bought in 2012, and the reason it is worth knowing is that diversity, not speed, is what keeps cryptography standing when one design falls.
This article is general information about how SHA-3 works, not advice about choosing cryptography for a particular system.







