Send a secret that burns after one read. Part of the Postblind privacy suite.
The browser encrypts the secret, the server stores only data it can't read, and the link works exactly once.
- Seal. The browser makes a random 256-bit key and encrypts the text with AES-256-GCM (WebCrypto). It sends only the ciphertext, the IV and an expiry time to
POST /api/secret. - Link. The server returns an id. The link is
/s/<id>#<key>. Browsers never send the part after#to the server, so the server never sees the key. - Open. The reveal page doesn't contact the server when it loads, so link previews in chat apps can't burn the secret. When the reader clicks Open and burn,
POST /api/secret/<id>/openreturns the ciphertext and deletes it in the same step. The browser then decrypts it. - Expire. If nobody opens it, an alarm deletes it after 1 hour, 1 day or 7 days.
The key becomes SHA-256(link key ‖ PBKDF2-SHA256(passphrase, salt, 600k)), so a reader needs both the link and the passphrase. Links that need a passphrase end in ~p, so the reveal page asks for the passphrase before opening. A wrong passphrase still burns the secret.
- A Rust Worker (
src/lib.rs) validates requests and serves the static pages inpublic/. - Each secret is its own Durable Object (
src/secret.rs), with an id fromunique_id(). A Durable Object handles one request at a time, so even when several requests race, only one reader gets the secret. - The server doesn't store IP addresses, user agents or access times. Workers observability is off. Rate limiting uses the Workers Rate Limiting binding, which keeps its counters at the edge and never writes them to our storage.
- Every response sends
Cache-Control: no-storeandReferrer-Policy: no-referrer, and pages get a strict CSP (public/_headers).
Protects against:
- The server operator, Cloudflare, or anyone who seizes the storage: they get only ciphertext and never the key.
- Link previews and scanners: the page needs a click before it opens the secret.
- Reading the secret twice.
Doesn't protect against:
- Someone who gets the full link before the recipient opens it: they can read it once, and the recipient will then see it's gone. Use a passphrase sent another way to protect against this.
- A compromised device on either side.
- A malicious server operator who changes
app.jsto leak keys. This is the usual limit of web-based encryption.
Limitation: Durable Objects store data on Cloudflare's disks. The ciphertext exists on disk until it is opened or expires. It is useless without the key, but this isn't the RAM-only design Postblind aims for.
wrangler dev.dev.vars sets ALLOW_TEST_TTL=1, which also accepts ttl: 60 so you can test expiry. Production never sets it.
wrangler deployThis serves the app on burn.xivlabs.tech. Change routes in wrangler.toml once postburn.app is registered.