Share Code Without Exposing Secrets

Encrypted code sharing with syntax highlighting for 20+ languages. Your code is encrypted in the browser before it ever reaches the server. The decryption key stays in the URL fragment — never stored, never logged.

Built for Developers

Syntax Highlighting

Full syntax highlighting for 20+ languages including JavaScript, Python, Go, Rust, SQL, YAML, Bash, TypeScript, C++, and more.

Line Numbers & Dark Theme

Built on CodeMirror 6 with line numbers, a developer-friendly dark theme, and a comfortable reading experience for any code snippet.

Zero-Knowledge Encryption

Your code is encrypted in the browser using AES-256-GCM before being sent to the server. The server only ever stores ciphertext — it cannot read your code.

Auto-Delete & Burn

Set an expiry time so pastes auto-delete, or use burn-after-reading for one-time viewing. Once read, the paste is permanently destroyed.

How CloakBin Compares

CloakBinGitHub GistPastebinCodePen
End-to-end encrypted
Syntax highlighting
Auto-delete / expiry
No account required
API access
Custom URLs

Common Use Cases

Code Review with Secrets

Share code containing API keys or credentials for review without exposing them permanently. Set an expiry so the paste disappears after the review is done.

Sharing .env Files

Send environment configurations to teammates securely. No more pasting database URLs and API tokens into Slack where they persist in chat history forever.

CI/CD Configs

Share pipeline configurations containing secrets, deployment keys, or service account credentials. Burn-after-reading ensures one-time access only.

Incident Response Logs

Share sensitive logs during incidents with your team. Set auto-delete so the logs are cleaned up after the incident is resolved, reducing your exposure window.

Developer Workflow

Works with your existing tools

$ # REST API for programmatic access

$ curl -X POST https://cloakbin.com/api/paste \

-H "X-API-Key: your-key" \

-d '{"content": "encrypted-data", "language": "python"}'

Use the REST API to integrate code sharing into your scripts and CI pipelines.

Premium users get custom URLs for memorable, branded links to shared snippets.

Share Code Securely Right Now

20+ languages. Zero-knowledge encryption. No sign-up required.

Share Code Now

Related Pages