Crypto
Hash Generator
Compute a SHA digest for a text fixture and compare exact inputs, including whitespace and line endings.
About this tool
When to use it
Compute a SHA digest for a text fixture and compare exact inputs, including whitespace and line endings.
How to use it
Choose SHA-256, SHA-384, or SHA-512, paste the text, and select Generate hash. Compare the hexadecimal digest with a trusted expected value. Recompute after changing the input or algorithm.
Guide updated . Examples checked against this implementation.
Worked examples
SHA-256 of a small known fixture
Input
abc; Algorithm: SHA-256Expected output
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adThis fixture contains exactly three characters and no final newline. Adding a newline changes the digest.
Errors and unsupported input
The digest differs from a file checksumCheck encoding, newline bytes, and whether the other tool hashes file bytes rather than copied text. This workspace hashes UTF-8 text.
Continue this workflow
- HMAC Generator: Create a keyed message authentication code instead of a plain digest.
Questions
Frequently asked questions
Can I decrypt a SHA digest?
Hashing is not reversible encryption. A digest can be compared with candidate inputs, which is why plain SHA is unsuitable for password storage.