Anycert Trust Services

What to do with the original file after time-stamping

Why a time-stamped file must never be saved again, what changes its fingerprint and what does not, how to store it safely, and what to do if it has already been changed.

Updated on

After time-stamping, the original file must not be changed, nor opened and saved again: the time stamp contains the file's fingerprint (hash), and any change, even an invisible one, produces a different fingerprint. At the check the file would show as "does not match" and the time stamp would no longer prove anything about it. Copying or renaming the file, on the other hand, changes nothing.

Why saving it again is enough to break it

The time stamp does not contain the document but its fingerprint: a string of 64 characters calculated from every byte of the file. If a single byte changes, the whole fingerprint changes. Many programs rewrite the file when they save it even if the visible content is the same: they update the internal modification date, the author, the program version, the image compression. The text on screen is identical; the file is not.

What changes the fingerprint and what does not

ActionChanges the fingerprint?
Copying the file to another folder, a USB stick, an external driveNo
Renaming the fileNo: the name is not part of the content
Sending it as an email attachment and the recipient downloading itNo, as long as nobody edits it
Opening it read-only and closing it without savingNo
Opening it and saving it, even without changing anythingUsually yes
Autosave in a word processor or spreadsheetYes
Adding a comment, a highlight or a signature to a PDFYes
Sending a photo or video through a messaging app that compresses itYes: the recipient gets a different file
Uploading a photo to a social network and downloading it againYes
Rotating a photo or editing its details (date, location) in the gallery appYes
Converting the file to another format, for example from Word to PDFYes: it is another file
Extracting a ZIP archive and compressing it againYes: the new archive differs, even with the same files
Syncing with an online service that converts documents to its own formatYes, for the converted copy

Example: the contract opened again

On 3 February a landlord time-stamps tenancy-agreement.pdf. In March he opens it to read it again and, on closing, the PDF program asks whether to save the changes: he clicks yes without thinking, because he had only zoomed in on a page.

MomentFile fingerprintResult of the check
3 February, when time-stamped5e0b…c41dMatches
March, after saving againa91f…07e2Does not match

If he has a copy of the 3 February file, for example the attachment of the email sent to the tenant or a backup on a drive, the proof is safe: the time stamp matches that copy. If he does not, the time stamp no longer proves anything about that contract.

How to keep the time-stamped file

A checklist to follow right after time-stamping:

  • Make the file read-only. On Windows: right-click, Properties, "Read-only". On a Mac: File, Get Info, "Locked".
  • Keep at least two copies in different places, for example the computer and an external drive, or an online storage service that keeps files without converting them.
  • Keep the time stamp next to the file, with a similar name: tenancy-agreement.pdf and tenancy-agreement.pdf.tsr.
  • Create the single file (.tsd or .m7m), which holds document and time stamp together: they are harder to separate or mix up. It is created free of charge in your browser from the order page or with the tool Check a time stamp.
  • Always work on a copy. If the document still needs editing, save it under another name (for example tenancy-agreement-v2.pdf) and, if needed, time-stamp the new version too.
  • Keep the email with the time stamp, which is one more copy of the time stamp itself.
  • Check straight away, with the free tool, that file and time stamp match: it is the best moment to spot a mistake.

Photos and videos: beware of apps

Photos and videos are time-stamped as files, not as images seen on a screen. So:

  • copy them from the phone to the computer with a cable or with a service that keeps the original, not through messaging apps that compress them;
  • do not retouch, rotate or crop them after time-stamping;
  • if you need to send them to someone, send the time-stamped ZIP archive, or the single file, not the individual recompressed photos.

Anyone who receives photos compressed by a messaging app cannot check them against the time stamp: they need the original files.

Programs that save on their own

Some situations change the file without the user noticing:

  • Autosave. Word processors and spreadsheets linked to an online service save at every change, however small. Before opening a time-stamped file, turn it off, or open a copy.
  • Synced folders. Some online storage services convert documents to their own format when you open them in the browser. The converted copy no longer matches: keep the original file, not the online version.
  • Photo programs. Some galleries write rotation, recognised faces or location into the file. Keep time-stamped photos in a folder the gallery app does not manage.
  • Signing after the time stamp. Electronically signing a PDF that has already been time-stamped creates a new file. The right order is: sign first, then time-stamp.

If the file has already been changed

First look for a copy identical to the original: email attachments sent or received, backups, earlier versions kept by the operating system or by the online storage service. The tool Check a time stamp tells you in seconds which copy matches the time stamp.

If no copy matches, the time stamp can no longer be used for that file. Anycert cannot recover the file: it never received it, because your browser sends only the fingerprint, as explained in time-stamping without uploading the file. You can time-stamp the current version, knowing it will carry the date of the new time stamp.

And can the time stamp itself be changed?

The time stamp (.tsr) is signed by the qualified provider: if it were altered, the signature check would fail. Do not open it with text editors or rename it with an extension other than its own. The formats are explained in the guide to .tsr, .tsd, .m7m and .p7m formats, and the full check in the guide on how to verify a time stamp.

Frequently asked questions

If I rename the time-stamped file, is the time stamp still valid?

Yes. The name is not part of the file's content: renaming or copying the file does not change its fingerprint.

I opened and saved the time-stamped file: what can I do?

Look for a copy identical to the original, for example an email attachment or a backup, and check it with the free tool. If no copy matches, the time stamp no longer works for that file.

Can photos sent through a messaging app still be checked?

Usually not, because many apps compress them and the recipient gets a different file. Send the time-stamped ZIP archive or the single file instead of the individual photos.

Sources

Pages checked on .

More guides