Tools

Verify a Download Without Uploading It

Every installer download page offers a SHA-256 value somewhere near the button, and almost nobody checks it. The reason is not laziness. It is that the step has no obvious payoff: you have already clicked the link, the file is on your disk, and the hash looks like a very long typo.

It is also the only step that can tell you the file you are about to run is not the file the publisher signed.

What a checksum proves, and what it does not

A hash is a fixed-length value computed from the whole file. Change one byte anywhere in a 5 GB image and the value changes completely. That gives you two useful properties and one limit worth being precise about.

It catches a damaged download. A truncated transfer, a proxy that rewrote content, a resume that corrupted a block — all of these produce a different hash.

It catches a substituted file, but only as well as the channel the hash arrived on. If you read the expected value from the same page that served you the file, over HTTPS, then a network attacker has to break the TLS session to change either one. If you read the hash from a forum post, or from a different site than the download, the guarantee is weaker than it looks: the hash and the file are only tied together by the page.

It does not tell you the software is safe. A malicious publisher signs a malicious file correctly. Hashing answers “is this what they published”, not “should you trust them”. That distinction matters here, because the rest of the verification chain — the domain you downloaded from, the code signature on the installer — is doing the other half of the work.

Three commands, one per platform

On Linux:

sha256sum ./some-image.iso

On macOS:

shasum -a 256 ./some-image.iso

On Windows, built in since long before anyone needed it:

certutil -hashfile some-image.iso SHA256

Microsoft’s documentation describes that option as one that “generates and displays a cryptographic hash over a file”, which is exactly the whole job.

A detail that surprises people: GNU coreutils now describes sha256sum and its siblings as “a legacy interface to the more modern cksum utility”, and points readers at cksum for printing and verifying checksums. The sha???sum commands are not going anywhere and every Linux system has them, but if you are writing a script that will outlive you, cksum -a sha256 is the direction the manual points.

Comparing properly

Eyeballing two 64-character strings is how people convince themselves a mismatch is a match. Two better habits:

Use the verification mode when the publisher ships a checksum file. A SHA256SUMS file with a list of hashes can be checked wholesale, and the tool tells you which entries failed instead of asking you to compare them one at a time.

If you must compare by eye, compare in chunks from the end. The last eight characters are as diagnostic as the first eight, and people tend to check the beginning, where a different file will still look familiar.

One more: check the file size as well. A hash mismatch on a file of the wrong size is a truncated download, not an attack, and the two have different next steps — retry versus stop and investigate.

The case against pasting a 5 GB file into a website

Search for “sha256 online” and you will find tools that take an upload and return a digest. Some of them are fine. The design, though, has an obvious problem: the file has to travel to a server to be hashed, which for a disk image means uploading gigabytes over the connection you were trying to make faster, and leaving a copy of the file on someone else’s infrastructure.

Browsers can do the same calculation locally, and have been able to for years. The Web Crypto API’s digest() method “generates a digest of the given data, using the specified hash function” and works on data read from a local file — no network request, no copy left behind.

That is the entire design of FunToolkit’s file hash tool: pick a file, get MD5 and SHA digests, read them against the published value. The page states its own posture in three words — “Runs locally · Nothing uploaded” — and states its own cost honestly: “Large files use noticeable memory while hashing locally.” The same site publishes single-purpose browser tools across file, text, encoding and image categories, all built on the same principle, with the calculation on your machine rather than on a server.

A practical note for the paranoid, which is the correct posture here: a browser tool is only as trustworthy as the page you loaded it from, and a compromised site can compute anything it likes. The reason to prefer this design is not that the site is trustworthy and the upload tool is not. It is that local computation removes an entire class of failure — the file never leaves, so there is nothing to leak, log or retain.

Two honest limitations

FunToolkit is bilingual, and links here go to its English paths. The site serves /en/ and /zh/ separately; this article points at the English tool so the labels match the surrounding text.

Neither the site nor this article can verify a publisher for you. If the expected hash came from the download page of a domain you have not checked, you have verified that the file matches whatever that page said, which is a weaker statement than it sounds.

A note on whose site this is

FunToolkit is run by the same person who writes this site. The link above is not paid and carries no affiliate parameter; it is included because the browser-local design is the specific thing being described, and because a generic upload-based checksum site would illustrate the opposite point. The disclosure page lists every commercial relationship on this site.

The routine that is actually worth adopting

For anything that will run with administrator rights, and for anything that will be copied to a server:

  1. Download from the publisher’s own domain, not a mirror.
  2. Open the page’s checksum value, or its SHA256SUMS file.
  3. Run one command, or paste the file into a local tool.
  4. Compare, including the size.
  5. Only then run it.

Five seconds, four steps, and the failures it catches are the ones that cost a rebuild. The rest of the workstation setup — keys, terminal, editor — is the other half of the same job, and it is the half people do first because it feels like progress.

Sources

Primary documentation only — the provider's own page, the specification, or the standard itself. Claims that rest on anything else are described in the text as a market pattern or an inference, not as documentation.

  1. GNU Coreutils — sha2 utilities (sha256sum and its status as a legacy interface to cksum)
  2. Microsoft Learn — certutil (the -hashfile option: "Generates and displays a cryptographic hash over a file")
  3. MDN — SubtleCrypto.digest() (hashing in the browser, with no upload)

Written by . Spotted something out of date? Tell us.