← Reddit

I built an encrypted pastebin with Claude Code so I can share the .env files and keys Claude helps me with, without the server ever reading them

Reddit · Ishannaik · July 14, 2026
CloakBin is an encrypted pastebin application built with Claude Code that enables secure sharing of sensitive information like API keys and .env files. The application encrypts all data in the browser using AES-256-GCM encryption before it reaches the server, with the decryption key stored in the URL fragment that browsers never transmit upstream. The service includes burn-after-reading functionality, optional password protection as a second factor, and operates without user accounts or activity logs.

Detailed Analysis

A developer built CloakBin, a zero-knowledge encrypted pastebin, using Claude Code over several weekends to address a specific pain point that has become increasingly common among AI-assisted developers: the need to share sensitive credentials, environment variables, and private code snippets with Claude for debugging assistance. The tool encrypts content client-side with AES-256-GCM before it ever reaches the server, storing the decryption key in the URL fragment rather than transmitting it to the backend—a technique that exploits the fact that browsers never send URL fragments to servers. This architecture means the server only ever holds ciphertext, so even a complete server compromise would yield nothing readable to an attacker. Additional features like burn-after-reading, optional password protection as a second factor, and the absence of access logs round out a privacy-first design aimed at minimizing the attack surface for secrets shared during AI-assisted development sessions.

The project is notable less for its cryptographic novelty—zero-knowledge encryption and fragment-based key storage are established patterns—and more for what it reveals about a real workflow friction point in the Claude Code and broader LLM-coding ecosystem. Developers using Claude to debug applications routinely need to paste .env files, API keys, database connection strings, or proprietary code into chat interfaces or share them with teammates, and doing so through conventional channels like Slack, plaintext pastebins, or even copy-pasting directly into a chat window creates lingering exposure risks. Sensitive strings can persist in logs, chat histories, browser caches, or third-party storage indefinitely. By building a purpose-specific tool rather than relying on generic secret-sharing services, the author is implicitly signaling that the volume and frequency of secret-sharing has increased enough during AI-assisted coding to justify dedicated tooling.

This development sits within a broader trend of the developer community using Claude Code itself to build auxiliary tools that make AI-assisted development safer and more efficient—a kind of recursive tooling loop where the friction of using an AI coding assistant is solved by building more software with that same assistant. It also reflects growing awareness of the security implications of AI coding workflows more broadly: as LLMs become embedded in day-to-day debugging and require access to real credentials, logs, and infrastructure details to be maximally useful, the ecosystem is responding with grassroots infrastructure for handling that sensitive data more responsibly. Open-sourcing the project under MIT and making it self-hostable further extends this ethos, allowing security-conscious teams or enterprises to run their own instance rather than trusting a third-party service with even encrypted blobs.

More broadly, this kind of project underscores a maturing pattern in the Claude Code community: builders are not just using the tool to ship features faster, but are identifying gaps in the surrounding workflow—secret management, secure sharing, credential hygiene—and patching them with small, focused open-source utilities. As AI coding assistants become more deeply integrated into daily engineering practice, tools like CloakBin point to an emerging secondary market of privacy and security infrastructure built specifically for the AI-assisted development lifecycle, suggesting that as Claude Code adoption grows, so too will demand for guardrails that keep the increased data-sharing inherent to that workflow from becoming a liability.

Read original article →