What a One-Time Link Does Not Protect
SnapPwd Team
6 min read
A one-time link protects a secret in transit and at rest on the server. It does not protect the secret from whoever opens the link first, from the recipient once they have it, or from a device that is already compromised. If you remember one sentence from this post, make it that one.
We build SnapPwd, so we have an interest in you using one-time links. That is exactly why this post exists: a tool you understand the limits of is a tool you can use well. Everything below applies to SnapPwd, and most of it applies to every one-time secret tool.
What a one-time link does protect
First, the part that works. When you create a SnapPwd link:
- The secret is encrypted in your browser (or by the CLI) before it is uploaded. The server stores ciphertext.
- The decryption key is in the part of the link after
#, the fragment. Browsers do not send the fragment to the server when they request the page. - The encrypted payload is deleted when it is first revealed, or when the expiry you chose passes, whichever comes first.
- Opening the link shows a reveal screen first. Link previews and plain fetches of the page do not use it up; only clicking reveal does.
So the secret does not sit in a chat log, an inbox or a ticket for years, and a database leak at SnapPwd would expose ciphertext without keys. The security architecture page explains each step.
Now the limits.
1. Whoever opens it first gets it
A one-time link is a bearer token: anyone holding the complete link can reveal the secret, once. If the link is forwarded, posted in the wrong channel or read over someone's shoulder, the first person to click reveal wins.
What helps: send the link over a channel only the recipient can read. Choose a short expiry. On snappwd.io, turn on Send key separately to get the link and the key as two pieces, and send them through two different channels.
2. If the link is used up, you only find out afterwards
One-time delivery gives you detection, not prevention. If someone else opens the link first, your recipient sees that the secret is gone, and that is your signal. By then the other person has the secret.
What helps: tell the recipient to report a missing or already-opened link immediately, and treat that report as a leak: rotate the credential. SnapPwd can optionally email you when a link is opened, which shortens the time to notice. That notification includes the opener's IP address and an approximate location, so it also tells you whether the person who opened it was plausibly your recipient.
3. The recipient can keep a copy
Once the secret is revealed, it is on the recipient's screen. They can copy it, paste it into a note, screenshot it or save it in a password manager. SnapPwd cannot see or control any of that, and neither can any other tool.
What helps: this is usually what you want; the recipient needs the secret. If you only need them to use it briefly, share a credential you can rotate or revoke after the task, rather than a long-lived one.
4. The link sits in chat until someone opens it
The link replaces the secret in your chat history, which is the point. But until it is opened, the link is the secret: anyone who can read that chat can open it. That includes other members of a channel and AI agents that read the channel.
What helps: short expiries, direct messages instead of channels, and Send key separately for channels you don't fully control. A link that has been opened or has expired is harmless to leave in the history.
5. Scanners that run JavaScript can still use up a link
SnapPwd fetches and deletes the payload only after a click on the reveal button, so passive link previews do not burn the secret. A tool that loads the page in a real browser and clicks the button can. That includes some automated agents with browser control.
What helps: the same as above. If a link was used up before the recipient opened it, assume someone or something else saw the secret.
6. The fragment is not sent to the server, but it is not invisible
Keeping the key after # keeps it out of requests to SnapPwd's server and out of the server's logs. It does not hide it from the devices involved:
- The complete link, fragment included, is in the browser history of whoever opened it, and may sync to their other devices.
- Browser extensions with access to the page can read the full address.
- The link is in the history of whatever app you used to send it.
What helps: these copies are only useful until the secret is revealed or expires. Short expiries make them stale quickly.
7. A compromised device defeats any secret-sharing tool
If the sender's or recipient's computer has malware, a malicious browser extension or a keylogger, the secret can be captured as it is typed or displayed. Encryption in transit cannot help with a device that is already compromised.
What helps: nothing in the link. Device security is a separate problem.
8. The server still sees some metadata
The server never receives the plaintext or the key. It does store, until the secret is revealed or expires:
- the encrypted payload, whose size roughly reflects the size of the secret
- the expiry, and for files, the original filename and content type, which are not encrypted
- a notification email address, only if you add one
Like most web services, SnapPwd also records usage data such as access times and IP addresses, as described in the privacy policy.
What helps: don't put sensitive information in a filename. If you need to control every log line yourself, self-host the open-source API.
9. A link does not prove who sent it
Anyone can create a SnapPwd link. A link alone does not prove that it came from your IT team or your colleague, and an attacker can send a link too.
What helps: confirm through a channel you already trust that the sender meant to send it, especially when the link asks you to do something with the secret, like sign in somewhere.
10. You are trusting the code that does the encryption
Encryption happens in code SnapPwd ships to your browser. The API, CLI and self-hosted web client are open source under the MIT license, so you can read and run them yourself. The code of the hosted app at snappwd.io is not public.
What helps: if you need to verify every line that touches your secret, use the open-source CLI or self-host the open-source web client.
11. It is a delivery mechanism, not storage
Links expire, at most 30 days after they are created. A one-time link is for getting a secret from one person to another, not for keeping it.
What helps: store long-lived credentials in a password manager or secrets manager, and use one-time links for the handoff between people. Our guide to sharing API keys with your team covers how the two fit together.
Checklist
Before you send a one-time link:
- Send it over a channel only the recipient can read, or use Send key separately.
- Choose the shortest expiry that works.
- Tell the recipient to report a link that is already used up.
- Plan how you would rotate the secret if they do.
- For credentials an AI agent needs, have the agent write the secret to a file without reading it.
A one-time link turns "this password lives in Slack forever" into "this password existed in transit for a few minutes". That is a large improvement. It is not the same as the secret being safe from everyone, and you should not treat it that way.