Use an appropriate file-integrity tool to check whether a file has changed, with AI helping you organise and interpret the process. A filename, preview or matching file size does not establish that two files contain the same bytes. A cryptographic hash can support an integrity comparison against a trusted reference, but it does not by itself prove authorship, safety, permission or factual correctness.
This international guide follows fictional archivist Lila, who checks synthetic resource files before an authorised internal handover. The examples are invented, except for the arithmetic of the illustrative checksum. SuperIntelligence is a future-facing theme, not a claim of demonstrated general superintelligence. The guide introduces integrity reasoning, not a complete cybersecurity, archival or authentication policy.
- Define exactly which artifact and byte representation will be checked.
- Distinguish names, sizes, checksums and cryptographic hashes.
- Use a suitable implemented hashing tool, not generated hash text.
- Compare with an appropriately trusted reference manifest.
- Record missing or mismatched results without declaring success.
- Check provenance, permissions, content validity and meaning separately.
EDUKATE · VOCABULARY CODING AND ENGINEERING · PART 112 · TWENTY-EIGHTH COLLECTION
Find your next useful step
Continue the series: Parts 109–112
- Part 109: Testing factors that interact
- Part 110: Keeping missing data distinct from zero
- Part 111: Connecting requirements to verification evidence
- Part 112: Checking file integrity with fingerprints — you are here
Parts 105–108: uncertainty, process variation, concurrent edits and reversible choices · Part 100 capstone · Begin the complete series
Full chapter index
Define what integrity means
Understand fingerprints and collisions
Verify with a trusted reference
Inspect the limits and record results
Teach and transfer integrity reasoning
1. Define the artifact
Lila receives two fictional files named resource-final. She wants to know whether the received file matches the exact bytes of an approved reference artifact.
This is an integrity question. It differs from deciding whether the resource is correct, useful or appropriate for distribution.
2. Separate filename from content
Two different files can share a name, and a single unchanged file can be renamed. Names are helpful labels but are not proof of byte-level identity.
Record the expected artifact identifier, version and permitted storage location. Do not assume a familiar filename establishes provenance.
Contents · Previous chapter · Next chapter
3. Separate size from identity
Two files can contain the same number of bytes yet contain different bytes. Size is a useful preliminary check but cannot establish matching content.
A mismatch in size can establish that byte sequences differ, assuming comparable measurement. Matching size alone cannot establish that they agree.
Contents · Previous chapter · Next chapter
4. Understand a simple checksum
For a toy example, represent one fictional data record by the three numbers 10, 20 and 30. Add them to obtain a checksum of 60.
This deliberately weak checksum illustrates summarising data into a smaller value. It is not suitable for cryptographic security.
Related guide: reconciling concurrent edits.
Contents · Previous chapter · Next chapter
5. Find a detectable change
If the final number changes from 30 to 31, the toy checksum changes from 60 to 61. Comparing with the trusted original checksum reveals a difference.
The check detects this particular change. It does not follow that the checksum detects every possible change.
Contents · Previous chapter · Next chapter
6. Find a collision
A different fictional record, 11, 19 and 30, also sums to 60. The two data sequences are different but share the same toy checksum.
A collision occurs when distinct inputs yield the same output. This simple example demonstrates why matching weak checksums cannot reliably establish integrity.
Contents · Previous chapter · Next chapter
7. Find an order change
The sequence 30, 20 and 10 also sums to 60. The original toy checksum cannot distinguish the reordered sequence from the first one.
An integrity method must match the kind of changes that matter. The deliberately weak sum loses information about ordering.
| Toy record | Sum checksum | Interpretation |
|---|---|---|
| 10, 20, 30 | 60 | Original |
| 10, 20, 31 | 61 | Detected change |
| 11, 19, 30 | 60 | Collision |
| 30, 20, 10 | 60 | Order change missed |
Contents · Previous chapter · Next chapter
8. Understand a cryptographic hash
A cryptographic hash function produces a fixed-length digest from data. Suitable modern hash functions are designed to make relevant collision and preimage attacks computationally infeasible.
This is not a mathematical guarantee that distinct inputs can never share a digest. Use an appropriate approved algorithm and implementation for the actual context.
Contents · Previous chapter · Next chapter
9. Define the algorithm and representation
A file must be hashed as the intended sequence of bytes, with the algorithm identified. Hashing a displayed excerpt or retyped text is not equivalent to hashing the original file.
The encoding, line endings, compression or container format may change the bytes. Compare like with like.
Contents · Previous chapter · Next chapter
10. Use an actual hashing tool
A language model may describe how to compute a digest, but plausible hexadecimal text is not evidence that a calculation ran. Use a trusted hashing utility or verified execution environment.
Record the algorithm, tool outcome and file identity. Do not invent a fingerprint when the file is inaccessible.
Related guide: moving data between tools without losing meaning.
Contents · Previous chapter · Next chapter
11. Obtain a trusted reference
Lila needs a reference digest generated from the approved artifact and obtained through an appropriately trusted process. A digest supplied alongside an untrusted file may have been altered with it.
An integrity comparison depends on the reference as well as the received bytes. Identify how the reference was established and protected.
Contents · Previous chapter · Next chapter
12. Build a small manifest
A manifest can record artifact ID, version, expected path, byte size, hash algorithm and expected digest. Keep it within the appropriate access controls.
A manifest is itself a record whose provenance and integrity may need verification. Do not assume it is authoritative merely because it is formatted neatly.
Contents · Previous chapter · Next chapter
13. Compare and classify the results
In the fictional handover, F1 produces a matching digest, F2 produces a different digest and F3 is unavailable. These are stipulated result states, not computed digests.
Record match, mismatch and not checked separately. A missing file cannot be classified as verified.
| Manifest entry | Stipulated result | Next action |
|---|---|---|
| F1 | Digest matches | Record limited integrity result |
| F2 | Digest differs | Investigate and preserve evidence |
| F3 | File unavailable | Mark not checked |
Contents · Previous chapter · Next chapter
14. Respond to a mismatch
A mismatch indicates differing digest outputs under the specified comparison. Check whether the wrong version, representation, algorithm or reference was used before drawing conclusions about why.
Preserve the original evidence and escalate appropriately. Do not automatically overwrite, delete or distribute the file.
Contents · Previous chapter · Next chapter
15. Distinguish integrity from authenticity
A matching digest against an independently trusted reference can support a strong byte-integrity claim with a suitable algorithm. It does not by itself identify who created the artifact.
Authentication requires appropriate additional evidence, such as a correctly verified signature or trusted provenance process. Seek specialist support where necessary.
Contents · Previous chapter · Next chapter
16. Distinguish integrity from safety
A file can exactly match a reference and still contain harmful, incorrect, inappropriate or unauthorised content.
Use the applicable review and security controls. Do not open suspicious files simply to investigate them; follow the relevant safe handling procedures.
Related guide: matching record identities.
Contents · Previous chapter · Next chapter
17. Distinguish byte identity from semantic identity
Two text files can express the same sentence with different line endings or encodings and thus have different byte sequences. A document may also preserve visible meaning while metadata changes.
Byte comparison and semantic comparison answer different questions. If meaning matters, separately verify the content and structure using appropriate methods.
Contents · Previous chapter · Next chapter
18. Treat conversions as new artifacts
An approved text file converted to PDF will normally have different bytes. Record a conversion relationship, not an expectation that the two formats have the same digest.
Verify the output against the conversion requirements and generate an appropriate reference for the newly approved artifact.
Contents · Previous chapter · Next chapter
19. Give AI a bounded integrity brief
Ask the assistant to propose a manifest, list missing artifacts and interpret actual tool-generated digests. Require it to distinguish calculated, stipulated, unavailable and independently verified values.
Do not give the assistant secrets or files beyond its authorised access. It must not fabricate digest results or claim a security guarantee.
Contents · Previous chapter · Next chapter
20. Check the whole set
Verifying one file does not establish that every required file arrived. Compare the expected manifest entries with the files actually present, including unexpected duplicates or omissions.
For the invented three-file handover, only F1 has a stipulated matching result. F2 and F3 require separate disposition.
Contents · Previous chapter · Next chapter
21. Preserve the audit record
Record file identity, algorithm, reference source, computed result or unavailable state, date, reviewer and approved handling decision. Preserve versions according to applicable rules.
A later reviewer should be able to reconstruct what was checked. Do not silently replace the reference with the new digest to turn a mismatch into a pass.
Related guide: preventing duplicate actions during retries.
Contents · Previous chapter · Next chapter
22. Practise with a changed toy checksum
The sequence 4, 8, 12 sums to 24. The sequence 5, 7, 12 also sums to 24, while 4, 8, 13 sums to 25.
Explain which change the toy method detects and which it misses. Then explain why a real cryptographic integrity check needs a suitable algorithm and trusted reference.
Contents · Previous chapter · Next chapter
23. Connect across zoom levels
A learner can verify an authorised copy of a resource. A teacher can maintain versions of approved materials. An organisation can develop governed integrity and provenance processes.
At larger scales, trustworthy infrastructure, access controls, recovery procedures and qualified security review matter. Hashing alone is not a complete trust system.
Contents · Previous chapter · Next chapter
24. Connect vocabulary, Ztime and EnDist
Vocabulary Coding and Engineering distinguishes file name, byte sequence, checksum, digest, collision, integrity, authenticity and semantic equivalence. Ztime preserves the reference and artifact version at the point of verification.
EnDist is a conceptual lens for useful progress after misunderstanding and rework, not a physical quantity or validated numerical measure. Byte integrity is not a universal zero-loss guarantee for meaning.
Read more: shared vocabulary · EnDist in Civilisation OS.
Contents · Previous chapter · Next chapter
25. Four weeks of practice
Week one: distinguish file names, sizes and contents using synthetic records. Week two: calculate toy checksums and demonstrate collisions.
Week three: use a trusted approved hashing utility on permitted test files, preserving actual outputs. Week four: construct a synthetic manifest and explain integrity, authenticity and semantic review separately.
Contents · Previous chapter · Next chapter
26. Questions beginners ask and the next useful step
Does the same filename prove identity? No. Does a matching modern digest prove a document is true or safe? No. Can an AI-generated digest be trusted without computation? No.
Choose a permitted test artifact, identify the trusted reference and algorithm, and use an actual hashing tool. Record the result and what it does not establish.
The NIST Computer Security Resource Center hash function glossary and message digest glossary describe the condensed output of hashing and properties expected of approved cryptographic hash functions. The teaching checksum below is deliberately weak and unsuitable for security verification.
Contents · Previous chapter · Revisit the start of this collection