LearningRevealsv1

A cryptographic hash reveals whether file bytes changed

The same bytes reproduce the same digest while a changed input almost certainly does not.

Reddit
Output
A matching digest or a clear integrity warning
Input
A downloaded file and its publisher’s trusted SHA-256 digest
Relationship

What connects the input and output?

Calculate SHA-256 over the downloaded bytes and compare the result with the trusted value. An exact match supports integrity but does not by itself prove who created the file.

Sources

1
  1. csrc.nist.gov: A cryptographic hash reveals whether file bytes changedcsrc.nist.govUS-PUBLIC-DOMAIN

Discussion

0

Sign in to join the discussion.