Integrity • methodological example
SHA-256 checksum and the integrity of digital evidence: what can be demonstrated?
What a file hash confirms, what it does not prove and how to document copies of digital material. A methodological example and NIST sources with DOI identifiers.
The hash concerns the data, not the truth of the account
A hash function transforms a sequence of data into a value of a specified length. The FIPS 180-4 standard describes SHA-256, among other algorithms, and hashes are used to detect changes to data since the reference value was calculated. [1, sections 1 and 6.2] When working with digital evidence, always identify the object for which the hash was calculated: an individual file, a storage medium image or a container.
Matching hashes provide strong technical support for a claim that the data being compared are identical, provided the procedure is carried out correctly. However, they do not independently establish the document’s author, when it was created or whether the events it describes are true. Nor do they prove that the file was not changed before the first documented hash calculation.
Why must the time and subject of the comparison be defined?
The proposed record entry should include the material identifier, file name and size, algorithm, resulting value, date of the activity and the person who performed it. It is also useful to indicate the source of the file and where the copy is stored. This allows the next examiner to know what they are comparing, instead of trying to match an unlabelled string of characters to several similar files.
NIST discusses verifying the integrity of acquired data in connection with its collection and documentation. The practical conclusion is simple: a hash alone does not replace the history of how material was handed over. These elements answer different questions and should be considered together. [2, sections 3.1.2 and 4.2.2]
Case study: the ZIP file changed, the photo did not
Hypothetical scenario: a recipient receives an archive containing photographs. After the material is compressed into an archive again, the archive’s checksum is different, although the hashes of the extracted photographs remain the same. These results are not contradictory: different objects were compared. The archive has its own structure and metadata, while the individual files are separate sequences of data.
In such a case, the description should distinguish the integrity of the received container from whether its contents match the working copy. You cannot make the general statement “the material is identical” if only selected photographs were checked. Nor can you state that “the photos were altered” solely because the hashes of two archives differ. This is an example of an error in the scope of the conclusion, rather than a problem with the hash function itself.
What does a difference in hashes not mean?
A difference between hashes requires its cause to be investigated, but does not identify a person or intent. The change may have resulted from editing the content, converting the format or a program saving additional information. Each of these explanations requires its own findings. If the original version was not retained, the scope of possible comparison may be limited.
When comparing photographs, distinguish between identical files and similar images. Two different files may depict the same scene. Conversely, visual analysis does not replace checking whether the files are identical at the byte level. In the expert report, it is useful to specify the level of examination rather than use the ambiguous word “authentic”.
How should a question to an expert be formulated?
A useful question is: do the copies provided match the specified reference material, and what differences have been identified? If the aim is to establish the editing history, this should be stated separately. The expert can then assess whether metadata, file versions or other sources needed for a broader conclusion are available.
Such a check can be included in an analysis of computers and storage media or an IT opinion. When submitting material from Małopolska or another region of Poland, it is worth first agreeing how the copy will be created and documented, rather than changing file formats yourself.
Sources and literature
- NIST (2015). Secure Hash Standard (SHS). FIPS PUB 180-4, sections 1 and 6.2. DOI: 10.6028/NIST.FIPS.180-4.
- Kent, K.; Chevalier, S.; Grance, T.; Dang, H. (2006). Guide to Integrating Forensic Techniques into Incident Response. NIST SP 800-86, sec. 3.1.2, pp. 3-3–3-5, and sec. 4.2.2, pp. 4-7–4-9. DOI: 10.6028/NIST.SP.800-86.
The links and cited passages were checked on 18 October 2026. Page numbers refer to the publication's pagination; online documentation without pagination is identified by section name. The examples are educational scenarios, not descriptions of clients' cases.