Why we put the key after # — and how it actually works
In the Secure Link one-time link generator, we say: the key stays in URL after the hash symbol.
So what? In practice it means one simple thing. Server doesn't see anything that comes after #. Only your browser knows about this part.
Let's say someone intercepts the request to server. They'll see encrypted gibberish, but not the key.
Yes, sounds boring. However this tiny detail turns regular link into secure one. Well, mostly secure.
How URLs work
Any internet address splits into chunks:
https://example.com/path?search=hello#section1
^^^^^^^^^^^^^^^^^^^^
query fragmentThe ?search=hello part is called query. It goes to server with the request.
But #section1 is fragment. It stays in browser.
We put encryption key exactly in fragment. Server gets request, returns an encrypted note. Browser takes key from address bar and decrypts locally. Server doesn't even know about the key.
What actually flies over the network
Here is an example of the unsafe approach (do not use it):
GET /n/abc123?key=SuperSecretKey HTTP/1.1 Host: createsecurelink.com
Key in query — server will see it. Bad.
Here is the correct approach. The recipient receives https://createsecurelink.com/n/abc123#key.
GET /n/abc123 HTTP/1.1 Host: createsecurelink.com
#key ← the server does not receive this fragment
The HTTP request contains the path /n/abc123, but not the key. The recipient receives the key in the link's # fragment, not in the request to the server.
Simple scheme. And it works.
Why bother with this mess
We have three rules:
- 1The server only stores ciphertext
- 2Key never reaches server
- 3Decryption happens in your browser
Something like:
[Your browser] --encrypts--> [Ciphertext] --sends--> [Server] ^ | | (no key) | +------------- key in URL# ------------------+
Result: server physically cannot read your note. It doesn't have the key.
Many people initially consider this separation unnecessary. Keeping the key separate from server storage is precisely what makes decryption on the recipient's device possible.
What preview bots do
Telegram, Slack and other messengers show link previews. Their bots visit links but without fragment.
For the link https://createsecurelink.com/n/abc123#key, the bot makes an HTTP request to https://createsecurelink.com/n/abc123: the fragment after # is not included in the request.
Our server in such cases:
- Returns safe description (without revealing content)
- Doesn't try to be too clever
- Sets proper cache headers
Note stays intact. Preview doesn't "burn" it.
Mistakes that ruin everything
An HTTP redirect does not turn #key into ?key=. RFC 9110, section 10.2.2, requires the browser to inherit the original fragment when Location has no fragment of its own. An explicitly supplied new fragment can replace it. The real risks are on the client:
- 1Third-party analytics and error-monitoring scripts
A script running on the page can read the full URL through window.location.href, including its # fragment. Secure Link therefore does not load third-party trackers with URL access: Vercel Analytics, Microsoft Clarity and Plausible are disabled. On other sites, analytics and error-monitoring scripts may transmit the full address unless explicitly restricted.
- 1Malicious browser extensions
An extension with sufficient permissions can read URLs and page contents. Review installed extensions and their permissions.
- 1Browser history and synchronization
The complete link can enter browser history and sync to other devices on the account, together with its key.
- 1Clipboard history
Clipboard managers and cross-device synchronization can retain the copied link with its key. Avoid pasting it into shared documents and clear clipboard history when appropriate.
- 1Screenshots and sharing in one channel
A screenshot of the key or decrypted note will not disappear after TTL expires. Send an additional password separately; Split-link also lets you separate the link from the key itself.
How to use it right
Few simple rules:
- Set "one view" and short lifetime
- For important stuff add password (and send it separately)
- Warn recipient: "Link is one-time, don't forward"
- Not sure — burn note manually after reading
For password sharing, we recommend the shortest practical lifetime, for example no more than an hour. A less sensitive note may need a day if the workflow requires it.
Bottom line
URL fragment — simple idea with big consequences.
Key with recipient, ciphertext on server. That's it.
Want to share secrets without traces? Try one-time links. No harder than regular texting, but more peace of mind.
Though... maybe regular chat is fine for you. Everyone decides for themselves.