Nullbin
Share encrypted text and files through expiring links, or start an encrypted group chat that disappears. Nullbin is open source and self-hosted, with no accounts or database.
Paste
Send text or files through a link that lasts from 5 minutes to 30 days.
- Bundle up to 100 files in one paste
- Add a password or limit how many times the paste can be opened
- Give recipients separate links you can revoke individually
Null Chat
Start a private room in your browser for a group of 2 to 20.
- Admit people with single-use invites
- Choose a lifetime from 5 minutes to 1 week
- End the room early from any admitted member’s browser
What a paste link shares
The address tells the server which encrypted paste to return. The part after the # contains the key, which the browser uses to decrypt the paste on your device.
https://bin.nulliance.com/p/9f2c41d07be35a86c1e4f0d23b97a5e1Paste address · sent to the server#Qm8xT2vK4nR7sLp0dZ3wJ6yH1cF9bE5aGq8uM2iN4oYDecryption key · kept on your deviceWhat the server can see
- On disk
- Encrypted pastes and attachments, expiry times, open counts, and access-token hashes.
- In memory
- Encrypted chat records and the state needed to relay them. Restarting the server ends every room.
- In transit
- Network addresses, timing, and padded transfer sizes.
The browser relies on the JavaScript delivered by the frontend. A compromised frontend could capture plaintext or keys. Hosting the frontend separately reduces that risk from an API-host compromise. For Paste, the native CLI encrypts locally without loading the website’s JavaScript.
Expiry and revocation stop future access through the server. Recipients can keep copies they already opened. Server threat model.
How the protocols work
Paste encryption
- Derive keys
Start with a random 256-bit link key. If there’s a password, stretch it with Argon2id and combine it with the link key using BLAKE2b.
- Pad and encrypt
Pad the payload with Padmé before encrypting it in authenticated XChaCha20-Poly1305 frames. Filenames, file types, and exact sizes are encrypted too.
- Upload and verify
Upload the encrypted stream. The recipient verifies each frame and checks the final-frame tag to detect truncation.
Null Chat protocol
- Admit members
The creator’s browser verifies single-use invites. A separate roster key protects member names.
- Sign and encrypt messages
Each sender signs with Ed25519 and derives a fresh key per message. Sending chains rotate when someone is removed.
- Relay encrypted records
The server keeps room records in memory. Attachments use separate encrypted pastes with their own expiry.
The research paper covers the wire formats, deployment trade-offs, and which protocol properties were modeled in ProVerif.
Run Nullbin
One Go server supports both Paste and Null Chat. Use Docker to try it locally, or use nullbin-cli to create and open pastes on any Nullbin instance.
git clone https://github.com/Nulliance/nullbin-server.git nullbin
cd nullbin
docker build -t nullbin-dev .
docker run --rm --ulimit core=0 -p 127.0.0.1:8080:8080 -v nullbin-dev-data:/data nullbin-devOnce it’s running, open http://localhost:8080. For a public HTTPS deployment, follow the hosting guide.
go install github.com/Nulliance/nullbin-cli/cmd/nullbin-cli@latest
nullbin-cli create --server bin.nulliance.com --expires 1h --text 'Hello from the terminal'You can also download and verify a release binary.