{{social_card_html}}
{{kicker}}

The server holds a locked box.
The key never reaches it.

Need to send a password, an API token or a recovery code? Don't put it in a chat that lives forever. Paste it here: your browser locks it, the server stores the locked box, and only the link you share can open it — once.

Is nothing stored? Not quite, and it matters. The server does store something: the ciphertext, until it expires or is opened once. It just can't read it. That is why reading can be open to anyone — and why the real risks are abuse and a tampered page, not a database leak. Both are covered below.

The idea in six steps

Watch a secret travel

How a secret travels The sender's browser encrypts the secret and sends only the locked box to the server. The key travels separately in the link. The recipient's browser fetches the box and unlocks it locally. SENDER'S BROWSER THE SERVER RECIPIENT'S BROWSER the link, via chat or email Waiting… hunter2 the secret, in plain words x9Fq·2Lm0·Zr8… #key
Try it, for real

Lock something in this page

This uses your browser's built-in encryption (Web Crypto, AES-256-GCM) right here. Nothing you type is sent anywhere — open your browser's network tab to check.

Simplified: PrivateBin also compresses the text and derives the working key through PBKDF2 (100,000 rounds), and can add an optional password. The shape is the same.

Why the key can't leak to the server

The two halves of a link

A link has a part your browser sends and a part it keeps. The part after # — the fragment — is never put in the HTTP request. That is the whole trick.

{{paste_url}}?8f3a1c9d2b7e4a60#5ZkQ3vNfT9xLmB2cR7aYwE4pHs8dGuJ6tKn1VeXq
Address — goes to the server, as it must for the page to load.
Paste id — goes to the server. It's the name of the locked box on its shelf. Useless without the key.
Key after # — stays in the browser. It is read by the page's JavaScript to unlock the box, and never travels.

What the server literally receives when you open that link

GET {{paste_path}}?8f3a1c9d2b7e4a60 HTTP/2
Host: {{paste_host}}
(no key anywhere in the request)

This is specified in RFC 3986 §3.5 and described on MDN. Browsers do not send the fragment in requests or in the Referer header, so it doesn't reach server logs either.

Who knows what

What the server sees, and what the link holds

The server sees

  • That a paste exists, and its id
  • The ciphertext (random-looking bytes)
  • Roughly how big it is
  • When it was made, and when it's read
  • The IP address of whoever connects (the paste service keeps no request log)

Half is useless

  • Server without the key: a box it can't open
  • Key without the box: nothing to open
  • Optional password: a second lock, shared another way
Threat model

What it protects, and what it can't

✓
Protected

The server's disk, backups or database leak

An attacker gets locked boxes and no keys. AES-256-GCM is also tamper-evident: a changed box simply fails to open.

✓
Protected

Web-server and proxy logs

They contain the paste id, never the key, because the fragment is never sent.

✓
Protected

{{operator_title}}

{{operator_can_see}}

~
Partly

The link being intercepted in transit

Whoever sees the whole link can open it. Burn-after-reading, on by default, turns that into detection: if you open it and it's gone, someone else did. Send the optional password through a different channel for a real second factor.

~
Partly

Chat apps that preview links

Preview bots fetch URLs. A burn-after-reading paste asks “Yes, see it” first, so a bot can't burn it — and the bot never gets the key anyway.

~
Exposed

Metadata

When a paste was created, its size, and the IP addresses that connected are visible to the server. The content is not.

✕
Not protected — read this one

A compromised server serving malicious JavaScript

The code that encrypts is delivered by the same server, every visit. An attacker who controls the server could ship a page that copies your secret before it is encrypted. “Zero-knowledge” holds only while the server is honest about the page it serves. What reduces the risk here: the stock, unmodified PrivateBin image, pinned by digest so it can't change on its own; a strict Content-Security-Policy; a read-only container with no extra privileges. What it can't remove: you are trusting this server to serve the right page. For secrets whose loss would be severe, use software you install and verify yourself (Signal, age, GPG).

+
Narrowed, not removed

Injected script and tampered files: CSP and SRI

Both are left at PrivateBin's strict defaults, with no relaxations (the page template that adds the “How this works” link adds no script and no style). The Content-Security-Policy allows scripts only from the page's own origin: no inline script, and no eval (the one exception is WebAssembly compilation, which the page's compression needs). It also forbids framing and form posts, so an injected snippet in an attacker's markup can't run. It does not stop script that is already part of the page from sending data elsewhere, because the page may connect to any address. Subresource Integrity pins a hash for every script file, so a file swapped or corrupted in transit or in a cache is refused by the browser. Neither helps if the server itself serves a new page with new hashes, which is the card above.

✕
Not protected

Your device, or the recipient's

Malware, a shoulder-surfer, or a screenshot defeats any encryption in transit.

Who can create, who can read

Opening a link needs no account, so a recipient never has to sign up. Creating a paste needs {{signin_phrase}}: the site's edge checks your session before it lets any write reach the service. That closes the main abuse door, since an open pastebin is free storage for anyone. It does not change what the server can read, which is still nothing. Anyone without a sign-in who wants to send you a secret can't use this; ask for a link instead.

The service is also bounded, as a second line:

256 KB per pastetext only, no uploadsexpires within 1 week (default 1 day)1 paste per 30 s per network addressburn after reading by default
Using it well

Four habits

1. Keep burn-after-reading on. A secret read once is a secret that can't be read twice by someone else.
2. Shortest expiry that works. An unopened paste you forgot about is a liability; let it expire in an hour or a day.
3. Use the password for anything serious. Send the link in one channel and the password in another.
4. Rotate what you shared. A shared password is only as private as the recipient's device. Change it after.
Go deeper

Read the primary sources

{{we_looked}} for a recent independent audit of current PrivateBin and did not find one; the links above are what is public. Judge accordingly.