Which fingerprint should you trust when you download a file?

A matching fingerprint tells you whether a file fits that reference. The reference is useful only if you have a reason to trust it.

The table below gives the two comparisons for the original and altered files.

Check where the reference came from

As in Lesson 1.2, you compute a fingerprint, or digest, for the received bytes and compare it with a reference. A publisher releases the file. A download mirror hosts a copy. A match with a trusted SHA-256 reference is strong evidence that the file has the expected bytes. A match with the mirror’s own fingerprint tells you that the mirror’s file and fingerprint agree.

What the two checks say about the simulated download
FilePublisher’s fingerprintMirror’s fingerprint
OriginalMatchMatch
AlteredMismatchMatch

In the altered round, the same source provided both the file and its replacement fingerprint. The trusted publisher’s reference stayed the same because it came through an independent channel. A mismatch tells you the bytes differ from the expected release. It does not tell you how the difference arose.

A signature can authenticate the reference

A publisher can sign a release record that identifies the file and includes its digest. As in Lesson 1.3, you need a public key you already trust as belonging to the publisher. A verified signature authenticates the record under that key. The digest check then compares the download with the bytes named in that record.

Check your understanding

A mirror labels its matching fingerprint “from the publisher.” On the publisher’s authenticated release page you find a different fingerprint for the same release. Which reference should you use, and why?

Show the answer

Use the fingerprint from the publisher’s authenticated release page. Whoever can change the mirror’s file can also change the text or fingerprint on the same page. Your download fails the check against the publisher’s expected bytes.