SHA3 Hash Generator

Enter text and pick a SHA3 variant to generate its hash digest.

Result

3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532
sha3-256
32 bytes

How it is calculated

The tool hashes the exact bytes of the text you enter with SHA-3 and prints the digest as lower-case hexadecimal. Four variants are offered: sha3-224, sha3-256, sha3-384 and sha3-512. The number is the digest size in bits, so the hex string has size ÷ 4 characters (56, 64, 96 or 128) and the tool also reports the size in bytes (size ÷ 8: 28, 32, 48 or 64). An empty text gives no result. Any other variant name gives no result. The text is not trimmed or normalized, so spaces, line breaks and capitalization all change the digest, and the text is hashed as UTF-8 bytes. A hash cannot be reversed back to the text.

Worked example

Enter the text abc and choose sha3-256. The tool hashes the three bytes 61 62 63 and returns a 256-bit digest, which is 256 ÷ 4 = 64 hex characters or 32 bytes: 3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532. Choosing sha3-224 for the same text gives the shorter, 56-character e642824c3f8cf24ad09234ee7d3c766fc9a3a5168d0c94ad73b46fdf, so the variant matters.

Try this example →

Common mistakes

  • Adding a trailing space or line break when copying text. abc and abc (with a space) give completely different digests, so check for invisible characters.
  • Comparing a SHA3-256 digest with a SHA-256 digest. They are different algorithms and give different values for the same text, even though both are 64 hex characters long.
  • Choosing the variant by name memory. Entering an unsupported name does not warn you but returns SHA3-256, so verify the variant in the result.
  • Using a plain hash to store passwords. SHA-3 is fast and unsalted here, so it is a poor choice for protecting passwords; a salted, slow password hash is what is needed.
  • Expecting to hash a file by pasting its name. The tool hashes the text typed in, not the contents of a file with that name.

Sources

About this calculator

SHA-3 is the newest member of the Secure Hash Algorithm family, standardized by NIST in 2015 (FIPS 202) and built on the Keccak sponge construction — a fundamentally different internal design from SHA-1 and SHA-2, chosen partly as insurance in case a weakness were ever found in the older SHA-2 family. It comes in four output sizes — 224, 256, 384 and 512 bits — each producing a fixed-length hexadecimal digest no matter how long the input text is, and any change to the input, however small, produces a completely different digest.

Because the transformation only runs one way, SHA-3 hashes are used to verify that a file or message hasn't been altered, to fingerprint data for deduplication, and as a building block inside digital signatures and other cryptographic protocols. Software developers, security engineers and cryptography students use a hash generator like this one to compute a SHA-3 digest of arbitrary text and check it against a known value.

Was this helpful?

You can pick up to 3 reactions.

Note from the editors

SHA-3 is the standardized Keccak family, but Ethereum-style Keccak-256 uses different padding and gives a different digest, so do not compare the two. Here hello hashed with sha3-256 returns 3338be69 at the start and runs 32 bytes in total. Also avoid plain hashes for storing passwords; use a slow salted scheme instead. Which system or library are you checking your digests against?

Comments

  • Be the first to comment.

Popular calculators

All Calculators