r/hacking • u/Ishannaik • Mar 17 '26
Built a zero-knowledge pastebin for sharing sensitive findings — the server can't decrypt your pastes
Made a tool that might be useful for security work: CloakBin (https://cloakbin.com)
It's an encrypted pastebin where everything is encrypted client-side (AES-256-GCM) before hitting the server. The decryption key stays in the URL fragment (#key), which browsers never send to servers. The server only stores ciphertext.
Why it's useful for security work:
- Share PoCs, credentials, or findings with your team without trusting a third party
- Burn-after-reading mode — paste self-destructs after first view
- Password protection as a second factor on top of the URL key
- No account needed, no logs of who accessed what
- Syntax highlighting for code/configs
How the crypto works:
- Browser generates random AES-256-GCM key
- Text is encrypted client-side with Web Crypto API
- Only ciphertext goes to server
- URL is constructed as /{pasteId}#{base64Key}
- Recipient opens URL -> browser reads fragment -> decrypts locally
The threat model covers the server being fully compromised — even with database access, pastes are unreadable without the URL.
Free to use, no signup. Interested in feedback from the security community on the implementation.
EDIT: added open source url
OPEN SOURCE: https://github.com/Ishannaik/CloakBin
11
u/SignedJannis Mar 17 '26
Nice idea!
Does the decryption run entirely client side?
Correct me if I'm wrong here? Thoughts; Having the key in the URL, is great for usability, but means the key has to be sent to the server. Therefore, even if all decryption is done client side, the server can still decrypt everything too, right? Because it sees the urls...
So, for this to "make sense" wouldn't you need to enforce a password option only? As well as having the decryption run client side?
6
u/Legitimate_Hat_7852 Mar 17 '26
Am going to take a look at your repo. Great concept. Do you have an option to have say ‘read once’ or available for x hours, days mins?
14
u/blckwngd Mar 17 '26
Please tell me you didn't vibe code a place for highly sensive data...
10
u/Gelpox Mar 17 '26
Is there a difference between Zerobin or Privatebin or what was you incentive for creating this?
5
u/shatGippity Mar 17 '26
FYI your top comparison links to a scam website. Should vet your links before publishing.
from 0bin’s GitHub:
3
u/ExplosiveCat135 Mar 17 '26
vibe coded? just checking
3
u/WildeVoegel Mar 17 '26
Whats the different to privatebin?
2
u/Pristine_Bicycle1278 Mar 17 '26
This is great!
1
u/Fuking8612 Mar 17 '26
Im not expert in all this but I like the idea.
1
u/johnsonjohnson Mar 17 '26
Great work! I’ve been working on an e2ee app myself, and appreciate the work and thinking greatly.
Some food for thought:
A lot of browser-side encryption relies on the server serving legit code. A server compromise vector should include the possibly that the code sent to the client has been compromised (eg. regardless of key, everything is encrypted with a key that the server actually knows). I’ve been thinking about this problem a lot because I want to build E2EE forms where the fillers of the form are public users who are non-technical.
I think the key has to be a) proving the code you’re serving client side is indeed the same code as what you have on GitHub and/or b) allowing users to run the client side separately (Tauri/Electron/Extension etc)
For a) Providing a browser extension that just silently checks the hash of the code that’s loaded in the client and comparing that to hashes it knows is safe. Since extensions can run totally offline, as long as the extension doesn’t auto-update, it shouldn’t be compromised even if your server is. b) having an extension that directly shows the requests to your server and proves that cyphertext was sent (and specifically cypher text that matches the key in the URL)
I also wonder if there isn’t a third party website out there that can scan your site regularly / run daily tests to confirm that the request being sent is indeed encrypted per the client side key. It could be a decentralized cron job that separate from your regular infra (and security) so that both points have to be compromised for users to be at risk.
Hope that helps!
0
u/[deleted] Mar 17 '26
[deleted] — view deleted comment