TheGreatAzizi/Secure-Pastebin-Cloudflare-Worker
TheGreatAzizi/Secure-Pastebin-Cloudflare-Worker has 30 GitHub stars and 6 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-13 11:53 UTC. Last push 2026-10-21.
๐ Secure Pastebin โ End-to-End Encrypted Message Sharing. Zero-knowledge, password protected, self-destructing. Live demo: https://sp.theazizi.ir #InternetForAll
What you can do
- ๐ AES-256-GCM Encryption - Military-grade encryption in your browser
- ๐ก๏ธ Zero-Knowledge Architecture - Server cannot read your data. Ever.
- ๐ Optional Password Protection - Extra layer with PBKDF2 key derivation
- ๐ฅ Burn After Reading - Self-destruct after first view
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
๐ Secure Pastebin
End-to-End Encrypted Message Sharing on Cloudflare Workers
Zero-Knowledge โข Password Protected โข Self-Destructing
๐ Live Demo โจ Self-Hosted Ver
โจ Features
| Feature | Description |
|---|---|
| ๐ AES-256-GCM Encryption | Military-grade encryption in your browser |
| ๐ก๏ธ Zero-Knowledge Architecture | Server cannot read your data. Ever. |
| ๐ Optional Password Protection | Extra layer with PBKDF2 key derivation |
| ๐ฅ Burn After Reading | Self-destruct after first view |
| โฑ๏ธ Expiration Control | 1 hour to 30 days |
| ๐ Auto RTL Support | Persian, Arabic, Hebrew auto-detection |
| ๐ฑ Fully Responsive | Works on all devices |
| ๐ซ No Registration | No emails, no accounts, no tracking |
๐ How It Works
โโโโโโโโโโโโโโโ AES-256-GCM โโโโโโโโโโโโโโโ
โ Browser โ โโโโโโโโโโโโโโโโโโโโ โ Cloudflare โ
โ (Encrypt) โ โ KV โ
โ Key in URL โ โโโโโโโโโโโโโโโโโโโโ โ (Storage) โ
โ Fragment โ โ โ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
- Client-Side Encryption: Message encrypted in browser before sending
- Key in URL Fragment: Decryption key never reaches server (after
#) - Zero Storage: Server only sees ciphertext, never plaintext
- Optional Password: PBKDF2 with 100,000 iterations for extra security
๐ Deployment Guide
This guide uses Cloudflare Dashboard (no CLI required) - the exact method used for sp.theazizi.ir
Prerequisites
- Cloudflare account (free tier works)
- 5 minutes of your time
Step 1: Create KV Namespace
- Go to dash.cloudflare.com
- From left sidebar: Storage & Databases โ KV
- Click "Create a namespace"
- Name:
PASTEBIN_KV - Click "Create"
โ ๏ธ Important: Remember this exact name -
PASTEBIN_KV
Step 2: Create Worker
- Go to Workers & Pages โ Create application
- Click "Create Worker"
- Name your worker (e.g.,
secure-pastebin) - Click "Deploy" (we'll replace the code next)
Step 3: Bind KV to Worker
This step is critical - connects your KV to the worker:
- In your Worker dashboard, click "Settings" tab
- Go to Bindings section
- Click "Add"
- Select "KV Namespace"
- Configure:
- Variable name:
PASTEBIN_KV(must match exactly) - KV namespace: Select the one you created in Step 1
- Variable name:
- Click "Deploy"
Step 4: Add the Code
- In your Worker, go to "Edit code" (or Quick Edit)
- Delete all existing code
- Copy the entire
worker.jsfrom this repo - Paste into the editor
- Click "Save and Deploy"
Step 5: Add Custom Domain (Optional)
To use your own domain like sp.theazizi.ir:
- In Worker dashboard, go to "Triggers" tab
- Click "Add Custom Domain"
- Enter your subdomain (e.g.,
sp.yourdomain.com) - Add CNAME record in your DNS pointing to your worker
- Wait for SSL certificate (automatic)
๐ ๏ธ Local Development (Optional)
If you prefer Wrangler CLI:
# Install Wrangler
npm install -g wrangler
# Login to Cloudflare
wrangler login
# Create KV namespace
wrangler kv:namespace create "PASTEBIN_KV"
# Update wrangler.toml with your KV ID
# Deploy
wrangler deploy
๐ Security Details
Encryption
- Algorithm: AES-256-GCM
- Key Derivation: PBKDF2 (100,000 iterations)
- IV: Random 12-byte per message
- Key Location: URL fragment (never sent to server)
Privacy
- No server-side logs
- No analytics or tracking
- No registration required
- Messages auto-expire
- Burn-after-read option
๐ Project Structure
secure-pastebin/
โโโ worker.js # Main Cloudflare Worker code
โโโ README.md # This file
โโโ LICENSE # MIT License
๐ Internet Freedom
#InternetForAll
Internet access is a fundamental human right.
Restricting internet access violates human rights and limits freedom of expression, access to information, and the ability to communicate securely. We believe in free, open, and secure internet for everyone โ regardless of borders, politics, or censorship.
This tool is built to ensure private, secure communication remains accessible to all.
๐ค Contributing
Contributions welcome! Areas to improve:
- File attachments (encrypted)
- QR code generation for sharing
- Custom themes
- Browser extension
๐ License
MIT License - see LICENSE file
๐ค Author
TheGreatAzizi
- GitHub: @TheGreatAzizi
- X/Twitter: @the_azzi
- Demo: sp.theazizi.ir
Built with โค๏ธ for a free and open internet
Explore related projects
trimstray/the-book-of-secret-knowledge
A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.
258,162 starsHack-with-Github/Awesome-Hacking
A collection of various awesome lists for hackers, pentesters and security researchers
125,360 starsswisskyrepo/PayloadsAllTheThings
A list of useful payloads and bypass for Web Application Security and Pentest/CTF
82,649 starscaddyserver/caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
79,038 stars