You downloaded an installer from the internet, and now it sits in your downloads folder asking to be run. The publisher's page offered a long string of characters next to the download, labelled SHA-256, and you skipped it, because most people do. That string is the publisher telling you exactly what the file should look like, byte by byte, and checking it takes less than a minute.
Verification is a comparison. You compute the SHA-256 hash of the file you received, the publisher computed the hash of the file they released, and if the two values agree character for character, the file on your disk is the file they released. This guide walks through the whole job with the free SHA Hash Generator on Ovatly, which computes the digest in your browser, so the file is never uploaded anywhere.
Contents
- Quick answer
- What a checksum actually proves
- Where publishers put the value
- Why SHA-256 is the default
- How to verify software with a SHA-256 checksum, step by step
- Worked example: what a correct digest looks like
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
To verify software with a SHA-256 checksum: find the value the publisher printed, usually on the download page or in a file called SHA256SUMS, and copy it from the publisher's own site over HTTPS. Then open the SHA Hash Generator, choose SHA-256, switch to File mode, pick the downloaded file, and compute. Compare the digest the tool shows with the publisher's value. If they match exactly, the bytes are identical to the release. If they differ, re-download once; if they still differ, do not install the file.
What a checksum actually proves
A hash is a fingerprint computed from bytes. Feed the same bytes into SHA-256 and you always get the same 64 character digest; change a single byte anywhere in the file and the digest changes completely. That is what makes the comparison useful: there is no near enough.
What the match proves is narrow, and worth stating precisely. It proves the bytes you hold are the bytes the checksum was computed from. It does not prove who published the file. If an attacker replaced both the download and the printed checksum on a page you were tricked into visiting, the two would still agree. The proof only holds when the checksum comes from a source you already trust, which is why the publisher's own site, reached over HTTPS, is the only place to copy it from.
Where publishers put the value
Most publishers print the checksum on the download page, next to the file name or under a heading like Checksums or Verify your download. Larger projects collect every file's value into a single text file named SHA256SUMS, published alongside the release. Either source is fine, as long as it is the publisher's own.
Copy the value from there and nowhere else. A checksum pasted into a forum post, a video description or a third party mirror page proves nothing, because whoever controls that page controls both halves of the comparison. If a publisher offers several algorithms, take the SHA-256 value: SHA-1 survives only for checking old published checksums, and MD5 collisions can be manufactured, so neither carries the same weight.
Why SHA-256 is the default
SHA-256 belongs to the SHA-2 family and produces a 256 bit digest, printed as 64 hex characters. No collision for SHA-256 has ever been found in practice, which is why it is the right default for integrity checks. SHA-1, by contrast, has demonstrated collisions, so it is kept only for verifying old checksums that were issued in SHA-1. The SHA Hash Generator offers SHA-1, SHA-256, SHA-384 and SHA-512 through Web Crypto, the browser's built-in cryptography, and leaves out SHA-224 and SHA3 because Web Crypto does not expose them.
How to verify software with a SHA-256 checksum, step by step
- Download the file, then find its SHA-256 value on the publisher's download page or in the release's SHA256SUMS file. Copy the value from the publisher's own site, over HTTPS.
- Open the SHA Hash Generator and pick SHA-256 as the algorithm.
- Switch to File mode and select the downloaded file. The file is hashed locally in your browser and never uploaded.
- Click Compute and copy the hex digest the tool shows.
- Compare your digest with the publisher's value, character by character. Upper and lower case do not matter, and neither do spaces, but every character must agree.
- Act on the verdict. A match means the file is the release, byte for byte. A mismatch usually means an interrupted download or the wrong file: re-download once and check again, and if it still fails, do not install it and contact the publisher.
Worked example: what a correct digest looks like
The cleanest way to see a correct digest is the published test case. Type the three letters abc into the SHA Hash Generator with SHA-256 selected, and the tool returns exactly this:
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
That value is not an Ovatly invention. It is the worked example printed in FIPS 180-4, the standard that defines SHA-256, so every correct implementation produces it for the input abc. Verifying a real installer is the same routine with the file selected instead of text typed: the digest that comes out either equals the publisher's printed value or it does not.
The abc case also exposes the classic trap. Type abc and press Enter before hashing, and the digest changes, because text is hashed as UTF-8 exactly as given and the trailing newline is part of the input. The same applies to files: a text file containing abc plus a newline is a different file from one containing abc alone, and hashes differently.
Limitations and honest tradeoffs
A match proves byte identity against the checksum source, nothing about the publisher's honesty or the software's quality. A verified installer can still be software you decide not to run for other reasons.
Very large files are read fully into memory before hashing, so a multi-gigabyte disk image can be slow on a small machine. The digest is computed locally either way; nothing is uploaded.
The check is only as fresh as the checksum. Publishers re-release files under the same version name; if your download predates the change, an honest file can fail against a newer printed value. Re-download from the publisher and check again before concluding anything.
Common mistakes
- Copying the checksum from a mirror or forum. Whoever controls that page controls both halves of the comparison. Always take the value from the publisher's own site.
- Comparing across algorithms. A SHA-256 digest is 64 characters; it will never match an MD5 or SHA-1 value, because those are different computations, not a failed check.
- Installing anyway after a mismatch. The mismatch is the information. Re-download once; if it persists, stop and contact the publisher.
- Hashing the extracted contents. Verify the file as downloaded, the archive or installer itself, because that is the file the publisher hashed.
- Adding a newline when testing text. Text is hashed exactly as typed, and a trailing Enter changes the digest.
FAQs
Where do publishers put the SHA-256 checksum? Usually on the download page next to the file, or in a checksums file such as SHA256SUMS published alongside the release. Copy the value from the publisher's own site, not from a forum post or a mirror.
What does a matching checksum actually prove? It proves the bytes on your disk are identical to the bytes the checksum was computed from. It does not prove who published the file, which is why the checksum has to come from a source you already trust, over HTTPS.
Why did my hash not match the published value? The usual causes are an interrupted download or the wrong file. Re-download once and hash again. If it still does not match, do not install the file, and contact the publisher. When hashing text instead of a file, a trailing newline is the most common cause, because the newline is part of the input.
Is SHA-1 good enough for verifying a download? Only for checking an old published checksum that was issued in SHA-1. Collisions have been demonstrated for SHA-1, so it should not be used for new integrity claims. SHA-256 is the right default.
Is my file uploaded when I hash it? No. The SHA Hash Generator computes the digest in your browser using Web Crypto, and the file never leaves your device. Very large files are read fully into memory, so they can be slow, but nothing is sent anywhere.
Conclusion
Verifying a download is one comparison: your digest against the publisher's, with the checksum taken from the publisher's own site. The SHA Hash Generator does the computing in your browser, for an installer you just downloaded or any other file you need to trust. If you want to know how a checksum's length alone tells you which algorithm produced it, read Hash Lengths Explained. For more guides in this series, see our Security and Privacy guides, which pair each technique with the free tool that performs it.
References
- NIST, FIPS 180-4, Secure Hash Standard (SHS), the standard that defines SHA-256 and prints the abc worked example: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
- MDN Web Docs, on the Web Crypto API the generator uses to compute digests in the browser: https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API