A minimalist, open source online pastebin where the server has zero knowledge of stored data
open sourceZlibself-hostablefree
PrivateBin is a self-hosted pastebin that encrypts text in the browser with 256-bit AES-GCM before it's uploaded, so the server stores only ciphertext and the key travels in the part of the link after the #. Pastes can expire after a set time or after the first read, need a password, carry a threaded discussion, render Markdown or highlighted source code, include attachments with previews, and come with a QR code. It's a PHP app (7.4 or later) that stores data in files, a PDO database such as MariaDB, MySQL or PostgreSQL, Google Cloud Storage or S3, with official Docker images, and a JSON API for clients. It's a fork of Sébastien Sauvage's ZeroBin, under the zlib licence, and its site lists public instances.
Ways to install
On your own server
Hosted for you
Problems it solves
- share a stack trace or config snippet with a colleague without leaving it on a public pastebin
- send someone a password or API key with a link that stops working after it's read once
- a self-hosted Pastebin alternative where the server can't read what people paste
- run a paste service for my community without being able to see or be liable for its contents
- share text that expires after an hour, a day or a week
- protect a shared note with a password as well as the link
- paste source code with syntax highlighting and get a short link to send
- share a file or screenshot through an encrypted link instead of email
- an end-to-end encrypted way to send support logs to a vendor
- a pastebin for our internal network that stores paste data in S3 or PostgreSQL
- discuss a snippet with comments that are encrypted too
- transfer a long text from my laptop to my phone with a QR code
- create pastes from a script through an API on our own paste server
- an encrypted pastebin that runs on cheap PHP hosting
Features
- pastes encrypted and decrypted in the browser with 256-bit AES-GCM; the key stays in the URL fragment
- optional password protection
- expiry times, including never and burn after reading
- discussions, anonymous or with nicknames, with identicons or vizhashes
- Markdown with preview and syntax highlighting with four themes
- optional file uploads with image, media and PDF previews
- QR codes for paste URLs
- templates (bootstrap5, bootstrap, darkstrap) and translations with browser language detection
- storage in files, a PDO database (SQLite, MariaDB/MySQL, PostgreSQL), Google Cloud Storage or S3
- official Docker images on Nginx with php-fpm or FreeUnit, with file, database, GCS and S3 variants
View 1 more
- JSON API for creating and reading pastes and comments
Limitations
- Doesn't protect a leaked link: the decryption key is in the URL, so anyone with the link to a paste without a password can read it910
- Doesn't hide who opened a paste: the server's access logs can still show who accessed it, and admins can be forced to hand them over9
- Doesn't protect you from a compromised or coerced server: the admin could serve code that captures decryption keys9
Capabilities
| Has an API | plan not known |
|---|
Alternatives
The same job
These do what PrivateBin does.
- Opengist Self-hosted pastebin powered by Git, open-source alternative to GitHub Gist
- Onetime Secret Keep passwords and other sensitive information out of your chat logs and emails.
- Yopass Share secrets without leaving plaintext behind
- ByteStash A code snippet storage solution written in React & Node.js
- CryptPad Collaborative office suite, end-to-end encrypted and open-source
- Password Pusher Share passwords, text, files & URLs securely with self-deleting links and full audit logs.
