Academy
How self-destructing messages really work
A self-destructing message sounds like magic: you send it, it is read, it is gone. It is really three ordinary pieces of engineering working together, and knowing them tells you exactly when to trust one. This deep dive covers where the message is stored, why the key sits in the link, what the counter does, and the two promises no tool can make. It is written for curious non-specialists, with the technical bits explained plainly and checked against public documentation from MDN and the open-source projects in this space.
Published · 6 min read
Key takeaways
- A self-destructing message is an encrypted blob, a key kept in the link, and a counter that deletes the blob.
- The key lives after the # in the URL, which browsers do not send to the server.
- Deletion stops later discovery. It cannot stop a screenshot or a copy taken at reading time.
- Your risk is mostly the link itself, so send it on a channel you trust and add a passphrase when it matters.
The three parts
Every tool of this kind, from the older burn after reading note sites to a modern one-time secret link, is built from the same three parts. You may use them to send a secret message, a password or a key, and the mechanics are the same.
- An encrypted blob. Your text is scrambled so it looks like noise.
- A key. Whoever has the key can turn the noise back into text.
- A counter. The server counts how many times the blob has been fetched, or watches the clock, and deletes it when the limit is reached.
How the tool treats the key is the difference between a good design and a weak one.
Where the key lives
In a weak design, the server holds both the blob and the key, so the service can read your message and you are trusting its staff and its security. In a stronger design, the browser makes the key, encrypts the message on your device, and sends only the blob.
But the recipient needs the key too. The trick is to put it in the link, after a #. This part of a web address is called the fragment. Browsers use it to jump to a spot on a page, and they do not include it in the request sent to the server, as the MDN documentation on fragments describes. So the server sees the address up to the # and never the key.
Open-source projects describe this pattern too. Yopass says the browser encrypts the secret, generates the key randomly and places it in the URL fragment (Yopass on GitHub). PrivateBin describes the same idea, and is frank about its limits: anyone who holds the full URL of an unprotected paste can read it (PrivateBin on GitHub).
What the counter does
When the recipient opens the link, their browser asks the server for the blob. The server hands it over, adds one to the count, and deletes the blob when the limit is reached. A time limit works the same way, with a clock in place of a count. People also call these a self-destructing note or a disposable note, and some tools offer a one-time password share as a named feature.
Two details separate careful tools from sloppy ones.
Link previews. Chat apps and email scanners often fetch a link to draw a preview. If that fetch counted as a view, the secret would be gone before the person opened it. Well-built tools only spend a view on a deliberate action. On SecretPigeon, opening the page spends nothing. Only the Reveal secret button does.
Proof of the key. A thoughtful tool can ask the browser to prove it holds the key before releasing the blob, so a guesser who only has the link's ID cannot burn it or fetch it. SecretPigeon does this with a token derived from the key, so the server stores only a fingerprint of it.
What it protects against
| Threat | Does a self-destructing message help? | Why |
|---|---|---|
| Someone finds the message in chat a year later | Yes | The blob is gone and the link is dead |
| The service gets breached | Mostly | The stolen blobs are unreadable without keys that were never stored |
| A previewer fetches the link | Yes, if built well | Views are spent only on a deliberate action |
| A snooper reads your inbox before the recipient | No | They can open the link first |
| The recipient screenshots it | No | Deletion happens on the server, not on their screen |
The two things it can never promise
It cannot stop copying. Once a person has read a secret, they can screenshot it, paste it somewhere or write it down. Deletion makes sure the secret does not stay on a server for ever. It does not control a human.
It cannot protect a link that is opened by the wrong person. If an attacker reads your email before the recipient does, they can open the link first. The recipient would then see that it is gone. That is a useful alarm, since it tells you to change the secret, but the damage is done. A passphrase told on another channel closes the gap.
A worked example
Here is an illustrative scenario. Dev sends a database password to a contractor. He uses a tool with a one-view limit and a 24-hour time limit. He emails the link at 9:05.
The contractor's mail app fetches the link to draw a preview. A good tool shows a normal page and spends nothing. The contractor opens it at 9:40 and presses the reveal button. The browser fetches the blob, uses the key from the fragment to decrypt it, shows the text, and the server deletes the blob.
At 3:00 the next afternoon, someone searches the contractor's mailbox for "password" and clicks the old link. They see a page saying it is gone. That is the design working.
Now change one detail. Suppose the mail app had counted the preview as a view. The contractor would have found a dead link, and Dev would have had to send another. That is why previews matter.
Questions to ask before you trust one
Not every tool deserves the same trust. Before you paste something valuable, check four things.
- Does it say where the key lives? A tool that explains the fragment trick has thought about it. A tool that says nothing may hold the key itself.
- Can you inspect it? Open-source tools let others read the code. That is no guarantee, but it is more than a black box.
- Is the address right? Copycat sites exist, and some copy popular note services to tamper with what you send. Type the address yourself or use a bookmark rather than a search result.
- What does it do on a preview? Send yourself a link in the chat app you use and see whether it survives.
Choosing one
If you want the quick routine, our guide on sending a password securely walks through it, and the explainer on one-time links covers the basics. For the details of how SecretPigeon handles keys, the security page sets out what we claim and what we do not. When you are ready, you can create a link in under a minute.
Questions people ask
How does a self-destructing message work?
It is an encrypted copy stored on a server, a key kept in the link, and a counter. When the view or time limit is reached, the server deletes the encrypted copy and the link stops working.
Can a self-destructing message be recovered?
Once the server has deleted it, the readable text cannot be recovered from the service. Copies made by the person who read it, such as a screenshot, still exist.
Are self-destructing messages safe?
They are safer than leaving a password in a chat. Their weak point is the link, so send it on a channel you trust, set one view, and add a passphrase for anything valuable.
Does a burning link work if someone previews it?
It should. Good tools spend a view only when the recipient takes a deliberate action, such as pressing a reveal button, so a preview does not use it up.