PHPackages                             privatebin/privatebin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. privatebin/privatebin

ActiveProject[Security](/categories/security)

privatebin/privatebin
=====================

PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of stored data. Data is encrypted/decrypted in the browser using 256 bit AES in Galois Counter mode (GCM).

2.0.4(1mo ago)8.4k156994[128 issues](https://github.com/PrivateBin/PrivateBin/issues)[12 PRs](https://github.com/PrivateBin/PrivateBin/pulls)zlib-acknowledgementPHPPHP ^7.4 || ^8.0CI passing

Since Aug 25Pushed 3w ago104 watchersCompare

[ Source](https://github.com/PrivateBin/PrivateBin)[ Packagist](https://packagist.org/packages/privatebin/privatebin)[ Docs](https://privatebin.info/)[ RSS](/packages/privatebin-privatebin/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (10)Versions (49)Used By (0)Security (6)

[![PrivateBin](https://raw.githubusercontent.com/PrivateBin/assets/master/images/preview/logoSmall.png)](https://privatebin.info/)
==================================================================================================================================

[](#)

*Current version: 2.0.4*

**PrivateBin** is a minimalist, open source online [pastebin](https://en.wikipedia.org/wiki/Pastebin)where the server has zero knowledge of stored data.

Data is encrypted and decrypted in the browser using 256bit AES in [Galois Counter mode](https://en.wikipedia.org/wiki/Galois/Counter_Mode).

This is a fork of ZeroBin, originally developed by [Sébastien Sauvage](https://github.com/sebsauvage/ZeroBin). PrivateBin was refactored to allow easier and cleaner extensions and has many additional features.

What PrivateBin provides
------------------------

[](#what-privatebin-provides)

- As a server administrator you don't have to worry if your users post content that is considered illegal in your country. You have plausible deniability of any of the pastes content. If requested or enforced, you can delete any paste from your system.
- Pastebin-like system to store text documents, code samples, etc.
- Encryption of data sent to server.
- Possibility to set a password which is required to read the paste. It further protects a paste and prevents people stumbling upon your paste's link from being able to read it without the password.

What it doesn't provide
-----------------------

[](#what-it-doesnt-provide)

- As a user you have to trust the server administrator not to inject any malicious code. For security, a PrivateBin installation *has to be used over**HTTPS*! Otherwise you would also have to trust your internet provider, and any jurisdiction the traffic passes through. Additionally the instance should be secured by [HSTS](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security). It can use traditional certificate authorities and/or use a [DNSSEC](https://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions)protected [DANE](https://en.wikipedia.org/wiki/DNS-based_Authentication_of_Named_Entities)record.
- The “key” used to encrypt the paste is part of the URL (in [the fragment part separated by the `#`](https://en.wikipedia.org/wiki/URL#fragment)). If you publicly post the URL of a paste that is not password-protected, anyone can read it. Use a password if you want your paste to remain private. In that case, make sure to use a strong password and share it privately and end-to-end-encrypted.
- A server admin can be forced to hand over access logs to the authorities. PrivateBin encrypts your text and the discussion contents, but who accessed a paste (first) might still be disclosed via access logs.
- In case of a server breach your data is secure as it is only stored encrypted on the server. However, the server could be abused or the server admin could be legally forced into sending malicious code to their users, which logs the decryption key and sends it to a server when a user accesses a paste. Therefore, do not access any PrivateBin instance if you think it has been compromised. As long as no user accesses this instance with a previously generated URL, the content can't be decrypted.

Options
-------

[](#options)

Some features are optional and can be enabled or disabled in the [configuration file](https://github.com/PrivateBin/PrivateBin/wiki/Configuration):

- Password protection
- Discussions, anonymous or with nicknames and IP based identicons or vizhashes
- Expiration times, including a "forever" and "burn after reading" option
- Markdown format support for HTML formatted pastes, including preview function
- Syntax highlighting for source code using prettify.js, including 4 prettify themes
- File upload support, image, media and PDF preview (disabled by default, size limit adjustable)
- Templates: By default there are bootstrap5, bootstrap CSS and darkstrap to choose from and it is easy to adapt these to your own websites layout or create your own.
- Translation system and automatic browser language detection (if enabled in browser)
- Language selection (disabled by default, as it uses a session cookie)
- QR code for paste URLs, to easily transfer them over to mobile devices

Further resources
-----------------

[](#further-resources)

- [FAQ](https://github.com/PrivateBin/PrivateBin/wiki/FAQ)
- [Installation guide](https://github.com/PrivateBin/PrivateBin/blob/master/doc/Installation.md#installation)
- [Configuration guide](https://github.com/PrivateBin/PrivateBin/wiki/Configuration)
- [Templates](https://github.com/PrivateBin/PrivateBin/wiki/Templates)
- [Translation guide](https://github.com/PrivateBin/PrivateBin/wiki/Translation)
- [Developer guide](https://github.com/PrivateBin/PrivateBin/wiki/Development)

Run into any issues? Have ideas for further developments? Please [report](https://github.com/PrivateBin/PrivateBin/issues) them!

###  Health Score

67

—

FairBetter than 99% of packages

Maintenance92

Actively maintained with recent releases

Popularity47

Moderate usage in the ecosystem

Community40

Growing community involvement

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 52.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~104 days

Recently: every ~50 days

Total

35

Last Release

52d ago

Major Versions

1.7.8 → 2.0.02025-07-28

1.7.9 → 2.0.42026-05-03

PHP version history (7 changes)1.0PHP ^5.2.6 || ^7.0

1.2PHP ^5.4.0 || ^7.0

1.3PHP ^5.5.0 || ^7.0

1.3.4PHP ^5.6.0 || ^7.0

1.3.5PHP ^5.6.0 || ^7.0 || ^8.0

1.6.0PHP ^7.3 || ^8.0

2.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/776b2f29b28be5a208d3a10bf5fea63ebcbccecd79d91f8eb60efd168abfdee8?d=identicon)[rugk](/maintainers/rugk)

![](https://www.gravatar.com/avatar/f6bdeeab2ca4ea81904326771e8962a54f1c34665d623ee579fc2a77a9f0442b?d=identicon)[El RIDO](/maintainers/El%20RIDO)

---

Top Contributors

[![elrido](https://avatars.githubusercontent.com/u/1017622?v=4)](https://github.com/elrido "elrido (2278 commits)")[![privatebin-translator](https://avatars.githubusercontent.com/u/72346835?v=4)](https://github.com/privatebin-translator "privatebin-translator (1002 commits)")[![rugk](https://avatars.githubusercontent.com/u/11966684?v=4)](https://github.com/rugk "rugk (470 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (74 commits)")[![Ribas160](https://avatars.githubusercontent.com/u/42250412?v=4)](https://github.com/Ribas160 "Ribas160 (71 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (66 commits)")[![Haocen](https://avatars.githubusercontent.com/u/10842569?v=4)](https://github.com/Haocen "Haocen (38 commits)")[![sebsauvage](https://avatars.githubusercontent.com/u/1647758?v=4)](https://github.com/sebsauvage "sebsauvage (30 commits)")[![sqs](https://avatars.githubusercontent.com/u/1976?v=4)](https://github.com/sqs "sqs (30 commits)")[![r4sas](https://avatars.githubusercontent.com/u/7023612?v=4)](https://github.com/r4sas "r4sas (27 commits)")[![Hexalyse](https://avatars.githubusercontent.com/u/4415295?v=4)](https://github.com/Hexalyse "Hexalyse (25 commits)")[![bitwiseshiftleft](https://avatars.githubusercontent.com/u/288092?v=4)](https://github.com/bitwiseshiftleft "bitwiseshiftleft (25 commits)")[![simonrupf](https://avatars.githubusercontent.com/u/7023620?v=4)](https://github.com/simonrupf "simonrupf (20 commits)")[![karthikkasturi](https://avatars.githubusercontent.com/u/21277826?v=4)](https://github.com/karthikkasturi "karthikkasturi (19 commits)")[![thororm](https://avatars.githubusercontent.com/u/25722402?v=4)](https://github.com/thororm "thororm (17 commits)")[![cloudscape-germany](https://avatars.githubusercontent.com/u/418352?v=4)](https://github.com/cloudscape-germany "cloudscape-germany (16 commits)")[![stevenandres](https://avatars.githubusercontent.com/u/11184778?v=4)](https://github.com/stevenandres "stevenandres (13 commits)")[![touchweb-vincent](https://avatars.githubusercontent.com/u/315173?v=4)](https://github.com/touchweb-vincent "touchweb-vincent (13 commits)")[![aldem](https://avatars.githubusercontent.com/u/754722?v=4)](https://github.com/aldem "aldem (10 commits)")[![techboyg5](https://avatars.githubusercontent.com/u/63317676?v=4)](https://github.com/techboyg5 "techboyg5 (10 commits)")

---

Tags

cryptocryptographyencryptedhacktoberfestone-timepastepastebinphpsecurityself-destroyself-hostedself-hostingencryptionaessecurezeroprivatee2eencryptedpastepastebinzero-knowledgeend-to-end-encrypted

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/privatebin-privatebin/health.svg)

```
[![Health](https://phpackages.com/badges/privatebin-privatebin/health.svg)](https://phpackages.com/packages/privatebin-privatebin)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k455.2M1.5k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k170.7M239](/packages/defuse-php-encryption)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[nzo/url-encryptor-bundle

The NzoUrlEncryptorBundle is a Symfony Bundle used to Encrypt and Decrypt data and variables in the Web application or passed through URL

951.1M2](/packages/nzo-url-encryptor-bundle)[mmeyer2k/dcrypt

A petite library of encryption functionality for PHP

97772.6k1](/packages/mmeyer2k-dcrypt)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5283.3k30](/packages/ionux-phactor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
