PrivateBin vs Yopass: Which Should You Self-Host?

Quick Verdict

PrivateBin is a fully-featured encrypted pastebin with syntax highlighting, file attachments, and discussions. Yopass is a purpose-built one-time secret sharing tool that destroys the secret after it’s viewed once. Use PrivateBin for sharing code snippets, logs, and text that multiple people may need to access. Use Yopass for sharing passwords, API keys, and secrets that should self-destruct after one read.

Updated March 2026: Verified with latest Docker images and configurations.

Overview

PrivateBin is a minimalist, open-source online pastebin where the server has zero knowledge of pasted data. All encryption happens in the browser using AES-256-GCM. The server stores only encrypted data — even the admin can’t read pastes. It supports expiration, burn-after-reading, syntax highlighting, file attachments, and threaded discussions.

Yopass is focused on one thing: sharing a secret that can only be read once. You paste a secret, set an expiration, and get a link. The recipient opens the link, sees the secret, and it’s permanently destroyed. No discussions, no syntax highlighting — just secure one-time delivery.

Feature Comparison

FeaturePrivateBinYopass
Primary use caseEncrypted pastebinOne-time secret sharing
EncryptionAES-256-GCM (browser-side)Client-side encryption (browser)
Burn after readingOptionalAlways (core feature)
Expiration options5 min to never1 hour to 1 week
Syntax highlightingYes (source code mode)No
File attachmentsYesNo
DiscussionsYes (encrypted threads)No
Password protectionYes (additional password)No (link is the key)
Custom instance IDYesNo
Markdown supportYesNo
APIJSON APIREST API
Storage backendsFilesystem, MySQL, PostgreSQL, SQLite, S3, Google CloudMemcached, Redis
Docker image size~30 MB~15 MB
RAM usage30-80 MB20-50 MB
LicenseZlib/LibPNGApache 2.0
LanguagePHPGo + React

Installation Complexity

Yopass is simpler — two containers (app + Memcached):

services:
  yopass:
    image: jhaals/yopass:11.18.0
    container_name: yopass
    restart: unless-stopped
    ports:
      - "1337:1337"
    command: "--memcached=memcached:11211"
    depends_on:
      - memcached

  memcached:
    image: memcached:1.6-alpine
    container_name: yopass-memcached
    restart: unless-stopped

PrivateBin is also simple — single container with filesystem storage:

services:
  privatebin:
    image: privatebin/nginx-fpm-alpine:2.0.3
    container_name: privatebin
    restart: unless-stopped
    ports:
      - "8080:8080"
    volumes:
      - privatebin_data:/srv/data

Both deploy in under 2 minutes. Yopass uses Memcached (or Redis) for ephemeral storage — secrets are never written to disk.

Performance and Resource Usage

MetricPrivateBinYopass
RAM idle30-80 MB20-50 MB
CPUMinimalMinimal
Disk usageGrows with pastesNone (Memcached is memory-only)
Response time<50 ms<20 ms

Both are extremely lightweight. Yopass is slightly lighter because Go is more efficient than PHP, and Memcached storage means no disk I/O.

Community and Support

MetricPrivateBinYopass
GitHub stars6,000+2,000+
DocumentationGood (wiki)Basic (README)
Update frequencyQuarterlyOccasionally
Contributors50+20+

PrivateBin has a larger community and more active development.

Use Cases

Choose PrivateBin If…

  • You need an encrypted pastebin for sharing code, logs, or config files
  • Multiple people need to access the same shared content
  • You want threaded discussions on shared content
  • File attachments are important (share encrypted files)
  • You need flexible expiration (from 5 minutes to permanent)

Choose Yopass If…

  • You’re sharing passwords, API keys, or other one-time secrets
  • The secret MUST self-destruct after being read once
  • You want the simplest possible UX for secret sharing
  • Disk-free storage matters (Memcached keeps nothing on disk)
  • You want a Go-based solution with minimal attack surface

Final Verdict

These tools serve different needs despite both involving “sharing encrypted text.” PrivateBin is a general-purpose encrypted pastebin — use it as a Pastebin.com replacement with zero-knowledge encryption. Yopass is specifically for one-time secret delivery — use it for sharing passwords, tokens, and sensitive data that should be read once and destroyed. Many teams run both: PrivateBin for day-to-day sharing and Yopass for credential delivery.

Comments