How it works
Latebrium is built so that only someone who knows the phrase can read your text. Even we can’t — this follows from how the service works, not from a promise.
From phrase to keys
First the phrase is normalised: case, spaces and punctuation don’t matter. Letters from different alphabets are different: a Latin “a” and a Cyrillic “а” give different keys.
Then, right in your browser, the Argon2id algorithm derives two keys from the phrase: the encryption key and the key for writing. The cache’s address is derived from the key for writing, so nobody can tie their own key to someone else’s phrase. Argon2id is deliberately slow and needs 64 MB of memory, which makes guessing phrases expensive.
What goes to the server
The text is encrypted with AES-256-GCM in the browser. To open a cache, the browser tells the server only its address. To write or delete the text, it sends the encrypted block and the key for writing, and the server works out the address from that key itself. The server never gets the phrase, the encryption key or the text. The database keeps a hash of the address with a server secret, not the address itself; the key for writing is not stored at all.
What the server knows
- how many times a cache was opened and when it was written to, to the minute — anyone who opens it sees this too. Until a cache is first written to, nothing about it is stored;
- the size of the encrypted text;
- the paid message, if someone left one: it is stored as plain text and is not anonymous;
- nothing else: there are no accounts, IP addresses are not stored (to limit request rates only an irreversible hash of them is kept, briefly), logs hold no cache identifiers.
Where the protection ends
Encryption doesn’t help against a simple phrase. If a phrase can be guessed — a famous quote, a name, a date — it can be found by trying, however slowly. A key is strong when it is unusual: a long combination of words only you know, or a couple of letters swapped for look-alikes from another alphabet.
Whoever knows the phrase owns the cache completely: they can read, change and delete. There are no other keys, roles or version history.
The only case where someone else sees the text is a report: whoever knows the phrase and reports the text hands the moderator its read key themselves. The key is stored encrypted and erased as soon as the report is decided.