Nullbin: Ephemeral Encrypted Sharing and Bounded Group Messaging with a Small Trusted Base
Describes Nullbin, a self-hosted system for expiring end-to-end encrypted text and file sharing and small, short-lived group chats, with no database, no accounts, and a deliberately small server.
Abstract
Encrypted pastebins usually stop at client-side encryption: they leak payload length and require trusting the server that delivers their JavaScript. End-to-end encrypted messengers, in turn, depend on accounts, databases, and large, highly complex codebases. I present Nullbin, a self-hostable system that combines expiring encrypted text and file sharing (Paste) with memory-only, forward-secret group chat (Null Chat). A single Go server with no database and no third-party Go dependencies never sees plaintext or keys, storing only ciphertext, hashes of capability tokens, and the operational metadata needed to enforce expiry and limits. A static pure-Go CLI and library (nullbin-cli) also offers the Paste protocol, eliminating the need for browser JavaScript. Nullbin's design puts security first and simplicity second, and covers five trust boundaries: (1) Padmé-padded streaming XChaCha20-Poly1305 encryption, with a pure-Go libsodium-compatible implementation checked against shared test vectors; (2) a bounded group chat protocol (2–20 members) with equivocation detection, four ProVerif models, and a malicious-server fuzzer; (3) a standard-library-only backend with hard quotas, IPv6 /48-aware rate limits, and fair bandwidth sharing; (4) matching hostile-content defenses in the browser and the terminal; and (5) reproducible builds and Sigstore-verified updates. I quantify Padmé overhead and Null Chat capacity, and report which design changes came out of adversarial review by a swarm of AI agents.