Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CloakBin — Zero-knowledge encrypted pastebin. Your data is encrypted before it leaves your browser. | Kitploit
Tools/GitHubGitHub/ishannaik/cloakbin
Encryption/Decryption ToolsWeb SecurityCryptographyPrivacyUtilities & Frameworks
GitHubishannaik/cloakbin

CloakBin

Zero-knowledge encrypted pastebin. Your data is encrypted before it leaves your browser.

View Repository
34129 days agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
Website

CloakBin

CloakBin Logo

Zero-Knowledge Encrypted Pastebin

Your data is encrypted before it leaves your browser. We can't read it. No one can.

License: AGPL v3 SvelteKit TypeScript

Live Demo • Report Bug • Request Feature


Why Zero-Knowledge?

Traditional pastebins store your data in plaintext. Server admins, hackers, or anyone with database access can read everything you share.

CloakBin is different.

root@kitploit:~
┌─────────────────────────────────────────────────────────────────┐
│                     ZERO-KNOWLEDGE FLOW                         │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│   YOUR BROWSER              SERVER                DATABASE      │
│   ────────────              ──────                ────────      │
│                                                                 │
│   "secret msg"                                                  │
│        │                                                        │
│        ▼                                                        │
│   ┌─────────┐                                                   │
│   │ ENCRYPT │  AES-256-GCM                                      │
│   │ locally │  (browser)                                        │
│   └────┬────┘                                                   │
│        │                                                        │
│        ▼                                                        │
│   "a3f8b2c1..."  ───────►  "a3f8b2c1..."  ───►  "a3f8b2c1..."  │
│   (ciphertext)             (ciphertext)         (ciphertext)    │
│                                                                 │
│   KEY stays in URL fragment (#)                                 │
│   example.com/p/abc#KEY    ◄── never sent to server             │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

The encryption key lives in the URL fragment (#), which browsers never send to servers. Even if our database is compromised, attackers only get meaningless ciphertext.

Security Model

ComponentWhat it sees
Your Browser✅ Plaintext (you control it)
Network/ISP🔒 Encrypted ciphertext only

Cryptographic Details:

  • Encryption: AES-256-GCM (authenticated encryption)
  • Key Derivation: PBKDF2 with 100,000 iterations (for password-protected pastes)
  • Random Generation: Web Crypto API (crypto.getRandomValues)

Verify the Zero-Knowledge Claim Yourself

Don't take our word for it — the guarantee is verifiable in your browser:

  1. Open your browser's DevTools (F12) and switch to the Network tab.
  2. Type some text and create a paste.
  3. Inspect the outgoing POST request that saves the paste and look at its request body. You'll see only ciphertext and a salt — never your plaintext, and never the encryption key.
  4. Look at the resulting paste URL: the decryption key is the part after the # (the URL fragment). By web standard, browsers never send the fragment to the server — it stays client-side.
  5. Open the paste and watch the Network tab again: the server returns the stored ciphertext, and decryption happens in your browser using the key from the #fragment.

Because the key only ever exists in the fragment and in your recipient's browser, the server (and its database, and anyone on the network) only ever sees encrypted blobs. There is no server-side code path that can read your content — even under subpoena, only ciphertext exists to hand over.

Features

  • 🔐 Zero-Knowledge Encryption - AES-256-GCM, keys never leave your browser
  • 🔑 Password Protection - Optional second layer with PBKDF2
  • 🔥 Burn After Read - Self-destructing pastes
  • ⏰ Flexible Expiration - 1 hour to never
  • 🎨 Syntax Highlighting - 50+ languages auto-detected
  • 🚫 No Tracking - No analytics, no cookies, no accounts
  • 📱 Responsive - Works on desktop and mobile

Quick Start

root@kitploit:~
# Clone
git clone https://github.com/Ishannaik/CloakBin.git
cd CloakBin

# Install
pnpm install

# Configure
cp .env.example .env
# Edit .env with your MongoDB URI

# Run
pnpm dev

Open http://localhost:5173

Environment Variables

root@kitploit:~
MONGODB_URI=mongodb://localhost:27017/cloakbin
ADMIN_USER=admin
ADMIN_PASS=your-secure-password

Tech Stack

Project Structure

root@kitploit:~
src/
├── lib/
│   ├── components/     # UI components
│   ├── db/             # Database adapters
│   └── crypto.ts       # Encryption (AES-256-GCM, PBKDF2)
├── routes/
│   ├── +page.svelte    # Create paste
│   ├── p/[id]/         # View paste
│   ├── api/            # REST endpoints
│   └── admin/          # Admin dashboard
└── app.html

Self-Hosting

CloakBin is fully open source. Deploy your own instance:

  1. Fork this repository
  2. Deploy to Vercel/Netlify/your server
  3. Set up MongoDB (Atlas free tier works)
  4. Configure environment variables

Contributing

PRs welcome! Please:

  1. Fork the repo
  2. Create a feature branch
  3. Make your changes
  4. Submit a PR

Acknowledgments

  • PrivateBin - Zero-knowledge inspiration
  • CodeMirror - Editor component
  • Lucide - Icons

Contributors

Contributors

Star Gazers

Star Gazers

License

GNU Affero General Public License v3.0 (AGPL-3.0) - see LICENSE

If you run a modified version of CloakBin as a network service, AGPL §13 requires you to offer the modified source to your users.


Your secrets deserve real privacy.

Made by Ishan Naik

Download Tool
CloakBin Server🔒 Encrypted ciphertext only
Database🔒 Encrypted ciphertext only
URL Recipient✅ Plaintext (they have the key)
LayerTechnology
FrameworkSvelteKit 2.0, Svelte 5
LanguageTypeScript
StylingTailwind CSS 4.0
DatabaseMongoDB
EncryptionWeb Crypto API
EditorCodeMirror 6
HostingVercel