One-way digest of the exact bytes
Hash text or a file
A hash is a fixed-length fingerprint. The same bytes always produce the same digest, and the digest is not a way back to the file. Use it to compare a download or to spot a changed string.
Text is hashed as UTF-8, with no added newline. A file is hashed from the bytes on disk, which is what a published checksum expects. SHA-256 is the default. SHA-512 and SHA-384 are longer fingerprints from the same family. SHA-1 is still here because old manifests use it. Do not use SHA-1 for a new security decision. Hex is the usual checksum format. Base64 is the same digest, packed for a text field.
Hashing runs in this browser. The file is not uploaded, and the digest is not stored.
This tool runs in your browser. Turn on JavaScript to use it.
SHA-256 of the letters glazlo
There is no newline after the word. Adding one changes the digest.
- Text
- glazlo
- Algorithm
- SHA-256
- Hex
- 681997c74e6d2f717a4c96823e35b240cc52a0d5fa439d77f49fa0834c066f55
How to use it
- 1Type text, or choose a file. A file replaces the text input for that run.
- 2Pick the algorithm that matches the checksum you were given.
- 3Compare the hex. Letter case does not matter. Every bit does.
Good to know
- A checksum published for a file will not match a hash of the file's name.
- SHA-1 collisions exist. Keep it for compatibility with an old list.
- Files over 8 MB are refused so the tab does not hold a huge copy.
- HMAC is a different page. A bare hash has no key.
Questions
Can I get the file back from the hash?
No. The page does not store a reverse map, and a digest is not an encoding.
Why does my shell command disagree?
echo adds a newline unless you use echo -n. This page hashes the characters you see, and nothing after them.
Which algorithm should a new project use?
SHA-256 is the usual choice. Use SHA-512 when the other system already says so.
Related tools
- HMAC a message
HMAC mixes a secret key into the hash so someone who can see the message still cannot forge the tag. Hashing the key and the message yourself, one after the other, is not HMAC.
- Encrypt text with a passphrase
This page locks a message you can read again only with the same passphrase. The package is specific to Glazlo. OpenSSL and a password manager will not know the byte layout.
- Generate a random password
A password from a coin-flip source is stronger than a word you adapted. This page draws each character from the sets you leave on, and then forgets it when you leave.