ProtectedShare vs PrivateBin
PrivateBin is a zero-knowledge pastebin: your browser encrypts each paste with AES-256-GCM before the server stores it. ProtectedShare uses the same cipher, but it's built for handing a secret to one person, with read counts, file drops and requests that don't depend on which server you pick.
Feature comparison
| Feature | PrivateBin | ProtectedShare |
|---|---|---|
| Encrypts in your browser before upload | ||
| Encrypts in your browser before upload | Yes | Yes |
| Burn after reading | ||
| Burn after reading | Yes | Yes |
| Expires after a set time | ||
| Expires after a set time | Yes | Yes |
| Allow a set number of reads | ||
| Allow a set number of reads | No | Yes |
| Password | ||
| Password | Yes | Yes |
| Encrypted file attachments | ||
| Encrypted file attachments | Partial | Yes |
| Discussion on a paste | ||
| Discussion on a paste | Yes | Partial |
| Markdown and syntax highlighting | ||
| Markdown and syntax highlighting | Yes | Partial |
| Ask someone to send you a secret | ||
| Ask someone to send you a secret | Not stated | Yes |
| Open source | ||
| Open source | Yes | Yes |
| Self-hostable | ||
| Self-hostable | Yes | Yes |
| Works without an account | ||
| Works without an account | Yes | Yes |
A pastebin, or a handoff
PrivateBin is a pastebin. With the default settings a paste can stay up for a year or never expire, carry a discussion thread, and be shown as Markdown or highlighted source code. That suits code snippets and logs you want to keep around and link to.
ProtectedShare is built for the opposite: getting a secret to one person, then deleting it. Every share expires within 30 days. Notes can burn after the first read, EnvShare secrets allow 1 to 100 reads, and a job removes expired rows every 30 minutes.
One project, many servers
PrivateBin is software that anyone can run. Its website has a “Try it out” link and keeps a directory of public instances, with checks such as HTTPS and an Observatory rating. Each operator picks the settings: file uploads are off by default, the default size limit is 10 MB, and the expiry options can change.
Its README is candid that you have to trust the server administrator not to inject malicious code. That holds for every tool that encrypts in the browser, ProtectedShare included, because the server delivers the code. The mitigations are the same as well: source code you can read, and running your own copy. The self-host guide shows how.
Similar cryptography
Both encrypt with AES-256-GCM in the browser and keep the key in the URL fragment, so the server stores only ciphertext. As PrivateBin's README points out, anyone holding a full link to a paste without a password can read it. The same goes for a ProtectedShare link that carries its key.
ProtectedShare also puts a gate in front of the ciphertext. HKDF derives an auth token from your key or password, the server stores only its hash, and it hands over the ciphertext only to a browser that presents the token. Link previews in chat apps fetch without the fragment, so they can't open, or burn, a note. The security page has the details.
Try it on ProtectedShare
Free, with no account. Each tool encrypts in your browser before anything is uploaded. The security model lists exactly what the server stores.
- Secure NotesA note encrypted in your browser. Burns after one read by default; add a password to send separately.
- EnvShare.env files, API keys and passwords, deleted after 1 to 100 reads or at expiry.
- File dropFiles up to 25 MB, encrypted in your browser and deleted after 1 to 100 downloads.
- Secret requestSend someone a link. What they type back is encrypted to a key only your browser holds.
Questions
Is PrivateBin end-to-end encrypted?
PrivateBin's README says pastes are encrypted and decrypted in the browser with 256-bit AES in Galois Counter Mode, and the key sits in the URL fragment, so the server has zero knowledge of what's stored. ProtectedShare uses the same cipher, AES-256-GCM, through Web Crypto.
Does PrivateBin support file uploads?
The software does, but file upload is disabled by default, so it depends on the instance you use. The default size limit is 10 MB per paste. ProtectedShare's file drop is always on at protectedshare.me: up to 25 MB per drop, with 1 to 100 downloads.
Which PrivateBin instance should I use?
PrivateBin is software anyone can run. Its website has a 'Try it out' link and lists public instances in a directory, and each operator chooses settings like file uploads and expiry options. Its README notes that you have to trust the server administrator, which is true of any in-browser encryption app, ProtectedShare included.
How long do PrivateBin pastes last?
The default options run from 5 minutes to 1 year, plus never and burn after reading, and each instance can change them. ProtectedShare shares last at most 30 days, and notes can burn after the first read.
Can I limit how many times a paste is read?
PrivateBin offers burn after reading; otherwise a paste stays readable until it expires. ProtectedShare's EnvShare lets you choose 1 to 100 reads, and file drops 1 to 100 downloads.