A checksum is a short representation calculated from a file's bytes. If the file changes, a cryptographic hash such as SHA-256 will almost certainly produce a different value. That makes checksums useful for detecting accidental corruption or a download that differs from a published version. But a matching checksum only helps if the expected value came from a source you trust.
GoldieKit's File hash checker computes SHA-256 locally and can compare it with an expected value. The focused verification guide gives the steps. This article explains the reasoning behind the comparison and its limits.
Integrity versus authenticity
Integrity asks whether two byte sequences are the same. Authenticity asks whether the file came from the claimed publisher. A SHA-256 hash is excellent for comparing bytes. If a publisher posts a file and its hash on a trusted page, you can download the file, calculate its hash, and check for equality. A mismatch means you should stop and investigate.
But if an attacker can replace both the download and the checksum on the same untrusted page, the values may still match. The hash has not authenticated the publisher. Signatures, trusted distribution channels, and independent verification can address that separate question. Do not treat a checksum pasted in the same suspicious message as proof that the attachment is safe.
What must match exactly
The algorithm and the bytes must be the same. SHA-256 and SHA-512 produce different lengths and values. A ZIP downloaded twice may differ if the server rebuilds it with new timestamps, even when the extracted documents look identical. A line-ending change in a text file changes its hash. A single added byte changes the value. This sensitivity is the point of a cryptographic checksum.
Expected SHA-256: a1b2... (publisher's complete value)
Calculated SHA-256: a1b2... (your local file)
Decision: compare every character, not only the beginning
The shortened example above is only illustrative; a real SHA-256 value is longer. Copy the complete expected value from the publisher's official channel. Use the file checker on the exact file you plan to open or install. Do not rename and repackage it before checking if the publisher's hash refers to the original archive.
| Result | Sensible next step |
|---|---|
| Full match from a trusted source | File bytes match the published value |
| Mismatch | Redownload or contact the publisher; do not assume it is harmless |
| No trustworthy expected value | A calculated hash is useful as a future reference, not proof of origin |
Cosmo tip: Keep the official checksum page open while checking the file. A copied value from an unrelated forum is a weaker reference.
A careful download workflow
Go to the publisher's known website or repository. Find the specific release and the checksum for the exact filename. Download the file, then use File hash checker to calculate and compare SHA-256. If the values differ, do not run the file. Check that you chose the correct platform build and version, then try a fresh download. If it still differs, ask the publisher.
For text or small values, the SHA hash generator can compute a digest, but a hash of copied text is not a substitute for hashing the actual downloaded binary. Whitespace, encoding, or line endings may change during copying.
Worked example: verifying a release archive
Suppose a project's official release page offers a Windows ZIP and a separate list of SHA-256 hashes for several platforms. Confirm the filename and version before copying its complete expected hash; the Linux archive's hash will not match the Windows one. Download the ZIP, leave it unchanged, and calculate its SHA-256 with the file checker. Compare the entire result. If it differs, check whether your browser renamed the file or whether you selected an older release, then download again from the official page. A second mismatch is a reason to stop and ask the publisher. If it matches, you know the bytes agree with the value on the page you trusted. You still need to inspect the archive and decide whether the publisher and software are appropriate for your device.
Checksums and archives
If the publisher provides a checksum for a ZIP, verify the ZIP before extracting it. Then inspect its contents. A matching ZIP hash proves it matches the published ZIP bytes, not that every contained file is safe to execute. The archive article covers expansion limits and unexpected entries. A checksum is one layer in a trust decision, not the whole decision.
Common mistakes
Do not compare only the first few characters. Do not assume two files with the same name are identical. Do not confuse a hash with encryption: a digest does not hide the file. Do not use a checksum from a source that is no more trustworthy than the file itself. When a trustworthy expected value is unavailable, you can still record a local hash so you can detect later changes to your copy, but describe that claim accurately.
When sharing your own files with a team, publish the file and checksum together with a clear version label, then keep that record stable. If you replace the file under the same name, update the checksum and explain the replacement. A mismatch is useful feedback; it should not be dismissed merely because the file opens. For high-assurance distribution, consider a signed release or another authenticated channel in addition to a hash.
Verify the checksum source too
A hash copied from the same compromised download page as the file may match a malicious replacement perfectly. Prefer a checksum published through a channel you already trust, such as a signed release announcement or an independently authenticated vendor page. Check the exact filename and algorithm, then compare the complete digest rather than a short prefix. When a publisher offers a cryptographic signature, that can establish a stronger provenance claim than a bare checksum, provided you verify the signing key.