Skip to content
toolbelt
Back to Guides

Checking a Download Actually Arrived Intact

By ·

Updated

The vendor publishes a SHA-256 and you have a file. Comparing them takes ten seconds and prevents a very bad afternoon.

What is this tool?

A hash turns any input into a fixed-length fingerprint. Same input, same fingerprint, every time. Change one byte and the fingerprint is unrecognisable.

How it works

SHA-1, SHA-256 and SHA-512 use the browser crypto API. MD5 needs its own implementation because browsers removed it, so it runs as local JavaScript. CRC-32 detects accidental corruption and is not a security hash at all.

Example

sha256("hello") = 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

sha256("hellp") = 99cf3f64c38ee34e8f0c1e5d5ff7b9cc5b19a7b90f8e6f9d5f8fa6b2f7e6f2e9

One character different, nothing recognisable in common.

When to use it

Verifying a download. Comparing a config file with a published checksum. Checking that two large documents are identical without opening both.

Optimization Tips

Beware line endings. A file checked on Windows and the same file on Linux can produce different digests if the tool normalised CRLF. If your hash does not match, check that before assuming the download was corrupted.

Frequently Asked Questions

Can I reverse a hash?
No. That is the point. You can only guess inputs and compare, which is what cracking tools do.
Is SHA-1 still safe?
For verifying a download against a published value, it still catches corruption. For signatures and passwords, no.
Why is my MD5 different from the website?
Line endings, or the site hashed the raw bytes while you hashed normalised text.
Can I use this for passwords?
No. Fast hashes are trivially brute-forced. Use bcrypt, scrypt or Argon2 with a salt.

Ready to try it out?

Put this knowledge into practice with our free tool.

Go to Tool

Related tools