A log file settles arguments only if people trust it, and trust gets hard the moment someone asks the obvious question: how do we know nobody edited this after the fact? Timestamps inside the file are no answer, because anyone who can edit the entries can edit the times too. What you need is a reference that sits outside the file and was fixed before the question ever came up.

That reference is a hash recorded when the log was closed. With it, the free Hash Checker on Ovatly can test any copy of the log in seconds, entirely in your browser. This guide explains the check, the one condition that makes it valid, and, just as carefully, what a passing check does not prove.

Contents

  • Quick answer
  • The one condition: the hash must exist from the time in question
  • What a match proves, and what it does not
  • How to check a log file, step by step
  • Worked example: one keystroke flips the verdict
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Take the hash that was recorded when the log was closed, open the Hash Checker, select the log file and paste the recorded checksum. The tool hashes the file locally, compares the two values character by character, and gives a verdict. Match means the file is byte for byte the log that was hashed at closing time. No match means the bytes differ, and the first suspects are an interrupted copy or the wrong file, not an editor. Without a hash recorded at closing time, no check can prove anything about the past.

The one condition: the hash must exist from the time in question

A hash is a fingerprint of a file's bytes at the moment it is computed. It says: this exact sequence of bytes produces this exact digest. That statement only points backwards if the digest was written down at the time you care about.

So the routine has two halves, and the first half cannot be done late. When a log is closed, at the end of a day, a shift or an incident, hash the final file and record the digest somewhere separate: a ticket, an email to yourself, a records file the log's editors cannot change. Months later, the second half, the check itself, takes seconds. But a hash taken today proves nothing about last month. It anchors the file from today onward, which is still worth doing the moment you realise the gap, as long as nobody claims it covers the earlier period.

What a match proves, and what it does not

A match proves one precise thing: the bytes of the file in front of you are identical to the bytes of the file the recorded checksum came from. Since even a one-character edit changes the digest completely, identical bytes mean the log was not altered after its hash was recorded. That is a genuinely strong result, and it is the whole result.

It does not prove the events inside the log are true. The check covers the container, not the contents. A log can be inaccurate, incomplete or written from memory and still match its hash perfectly, because the hash only testifies that the file survived unchanged, not that it deserved to. Treat a match as proof of custody, not of honesty, and it will never mislead you.

A match also does not prove the checksum itself came from a trustworthy source. Get the recorded value from wherever it was filed at closing time, not from a copy supplied alongside the file being checked, because a value that travels with the file can be replaced with it.

How to check a log file, step by step

  1. Find the checksum that was recorded when the log was closed, from the ticket, message or record where it was filed at the time.
  2. Open the Hash Checker and select the log file. The file is hashed locally in your browser and never uploaded.
  3. Paste the recorded checksum. The tool auto-detects the algorithm from its length unless you already know it, and ignores case and spaces in the pasted value.
  4. Run the check and read the verdict: Match or No match.
  5. If the verdict is No match, copy or download the file again and check once more before drawing any conclusion, because interrupted transfers are the usual cause.

Worked example: one keystroke flips the verdict

The checker's own example shows how strict the comparison is. A text file containing exactly the characters abc, with no trailing newline, matches this recorded SHA-256 checksum:

ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Open the same file, press Enter once at the end, save it, and check again: the verdict flips to No match. The visible content is identical, but the file gained a byte, and the digest covers bytes, not appearances. A real log behaves identically at scale. One edited entry, one deleted line, one re-saved encoding, and the digest recorded at closing time will not match. That strictness is exactly why a match is meaningful evidence that nothing was touched.

Limitations and honest tradeoffs

The check cannot repair a broken chain of custody. If no hash was recorded when the log was closed, there is nothing to check against, and no tool can manufacture the missing reference after the fact. The only fix is procedural: start recording hashes at closing time now.

The file is read into memory while it is hashed, so very large logs can be slow to check. And the verdict is deliberately narrow. No match means the bytes differ from the reference; it does not say which bytes, when they changed, or who changed them. Answering those questions takes the investigation the check merely starts.

Finally, prefer SHA-256 records where you have the choice. The checker also accepts MD5 values, which older systems still publish, but MD5 collisions can be manufactured, so an MD5 match is weaker evidence than a SHA-256 one.

Common mistakes

  • Hashing the log for the first time during the dispute. That anchors the file from today, not from when it was closed. Do not present it as covering the earlier period.
  • Taking the checksum from the same place as the file. A value stored beside the log can be swapped along with it. Use the copy filed separately at closing time.
  • Reading No match as proof of tampering. Rule out an interrupted download or the wrong file first; those are the usual causes.
  • Reading Match as proof the log is truthful. The check proves the file is unaltered, not that its entries describe real events.
  • Letting the log keep growing after hashing it. The recorded hash covers the file as closed. Appending new entries makes a new file that needs its own hash.

FAQs

I never hashed the log when it was closed. Can I still prove it was not altered? No. A hash anchors a file from the moment it is taken, not backwards. Hashing the log today lets you prove it is unchanged from today onward, which is worth doing, but last month's state can only be anchored by a hash recorded last month.

What does a Match verdict actually prove? That the file's bytes are identical to the file the recorded checksum came from. It proves the copy was not altered since that checksum was taken, nothing more. It does not vouch for whoever produced the checksum or for what the file says.

The check says No match. Does that prove someone tampered with the log? No. A failed check usually means an interrupted download or the wrong file entirely. Re-download or re-copy the file once and check again. A mismatch tells you the bytes differ; it cannot tell you why, when or by whom.

Does a matching hash prove the events recorded in the log really happened? No. The check covers the file, not the truth of its contents. A log can be complete and unaltered while still recording events inaccurately, and a fabricated log hashed promptly will match its hash perfectly.

How does the checker know which algorithm the checksum uses? It guesses from the length of the value you paste: 32 hexadecimal characters means MD5 and 64 means SHA-256. Case and spaces in the pasted value are ignored, so a checksum copied from a release page or a sums file works as it stands.

Conclusion

Proving a log untouched is mostly a habit, not a tool: hash each log as it closes, file the digest separately, and the later check is the easy part. When you need to create the reference in the first place, for a log or any other file you are about to hand over, our guide to fingerprinting a contract file before emailing it covers that side of the routine. For more in this series, see the Security and Privacy guides.

References