Time-stamping without uploading the file: how zero-knowledge works
A time stamp is applied to the file's fingerprint, not to the file: what is sent and what is not, how to check it yourself in the browser, and why the legal value is the same.
Updated on
To get a time stamp you do not need to hand your file to anyone: the time stamp is applied to the file's fingerprint (SHA-256 hash), a string of 64 characters calculated from the file. On Anycert your browser calculates the fingerprint on your device and sends only that: the content and the name of the file never leave your computer or phone.
Why the fingerprint is enough
The international standard for time stamps (RFC 3161) has the requester send the provider a fingerprint of the data, not the data itself. The time stamp then contains that fingerprint, the date, the time and the provider's details, never the file.
A fingerprint behaves much like a human fingerprint:
- it is always the same for the same file;
- it changes completely if even one bit of the file changes;
- the file's content cannot be worked out from it.
That is why whoever receives only the fingerprint can time-stamp it without knowing anything about the document. At the check, the fingerprint of the file is calculated again and compared with the one in the time stamp.
What is sent and what is not
| Data | Sent? | Notes |
|---|---|---|
| Content of the file | No | Stays on your device |
| Name of the file | No | The browser only remembers it in the open tab, to name the downloaded time stamp |
| SHA-256 fingerprint | Yes | 64 hexadecimal characters, that is 32 bytes |
| File size in bytes | Yes | A number, shown in the order summary |
| Email address of the person ordering | Yes | Needed for the order, the delivery and the receipt |
The qualified provider that issues the time stamp receives only the fingerprint.
How this differs from uploading the file
Many services ask you to upload the document and promise to delete it after time-stamping. Even when it really is deleted, the file has still passed through someone else's server and has been, for a while, in someone else's hands. With the fingerprint the problem does not arise: there is nothing to delete. This is what zero-knowledge means here: Anycert never learns anything about the file.
| Uploading the file | Fingerprint only | |
|---|---|---|
| The content leaves your device | Yes | No |
| You must trust a promise to delete it | Yes | No: you can check it yourself (see below) |
| Size limit | Usually | No: the same small amount of data is always sent |
| Time to send a 5 GB video | Depends on your connection | A few seconds after the calculation |
| Suitable for confidential documents, health data, source code | With caution | Yes |
How to check it yourself
The statement "the file is not uploaded" can be checked with the developer tools built into every desktop browser:
- Open the qualified time stamp page.
- Open the developer tools (F12 on Windows and Linux, Cmd+Option+I on a Mac) and the Network tab.
- Choose a file, even a large one, and wait for "Fingerprint calculated".
- No transfer the size of the file appears in the Network tab: the calculation happens on your device.
- Fill in the fields and send the order. The request contains the 64-character fingerprint, the size in bytes and the details of the person ordering, not the file.
You can run the same test by disconnecting from the network after opening the page: the fingerprint is calculated all the same, because the file does not have to go anywhere.
Example: a confidential document
An engineering firm needs to fix the date of a technical report for a client, containing personal and health data. The file is 12 MB.
| Step | What happens |
|---|---|
| Choosing the file | The browser reads the file in blocks and calculates the fingerprint, for example 9f2c…41ab |
| Order | The fingerprint, the size (12,582,912 bytes) and the firm's details are sent |
| Issue | The qualified provider signs the fingerprint with the date and time |
| Delivery | The time stamp (.tsr) arrives on the page and by email |
At no point does the client's data leave the firm: neither Anycert nor the provider receives it.
Questions about the fingerprint
Can two different files have the same fingerprint? In theory yes, because the number of possible fingerprints is finite. In practice nobody has ever found two different files with the same SHA-256 fingerprint, the algorithm normally used today for qualified time stamps.
Can the content be guessed from the fingerprint? The file cannot be calculated from its fingerprint. One caveat: if the content is very short and predictable, say a text file that only contains "yes" or "no", someone who knows the fingerprint could try every possibility and find the right one. With a real document, photo or archive this is not possible. For a very short text, add a few words, such as the date and place, before time-stamping it.
Does it work for an encrypted file? Yes: you time-stamp the encrypted file, which must then be kept encrypted, exactly as it was.
What remains your responsibility
Precisely because nobody else keeps the file, looking after it is up to you:
- without the original file the time stamp proves nothing, because it only contains the fingerprint;
- if the file is changed, even just opened and saved again, the fingerprint changes and the time stamp no longer matches;
- Anycert cannot recover the file, because it never received it.
The precautions to take are explained in what to do with the original file.
The check also happens in the browser
The free tool Check a time stamp reads the time stamp and recalculates the file's fingerprint on your device: here too, no file is sent. The page shows date, time, provider and time-stamped fingerprint and tells you whether the file matches. The limits of this check, and the alternatives, are described in the guide on how to verify a time stamp.
The legal value is the same
A time stamp applied to the fingerprint is a qualified time stamp in every respect: under the eIDAS Regulation (Article 41(2)) it enjoys the presumption of the accuracy of the date and time and of the integrity of the data to which they are bound. There is no "stronger" time stamp to be had by uploading the file, because a service that receives the file also ends up time-stamping its fingerprint. What a time stamp proves, and what it does not, is explained in what is a qualified time stamp.
Frequently asked questions
Is the file uploaded to a server?
No. Your browser calculates the file's fingerprint on your device and sends only that, together with the size in bytes and the details of the person ordering. The content and the name of the file are not sent.
Is a time stamp on the fingerprint as good as one on the file?
Yes. A time stamp is always applied to a file's fingerprint, even when a service asks you to upload the file: the RFC 3161 standard works that way.
Can Anycert recover the file if I lose it?
No, because Anycert never received it. Keep the original file carefully, in at least two copies.
Sources
- EUR-Lex: Regulation (EU) No 910/2014 (eIDAS), consolidated text: Article 3, points 33 and 34, Article 24a(6), Articles 41 and 42 (qualified electronic time stamps)
- IETF: RFC 3161, Time-Stamp Protocol (.tsr format)
Pages checked on .