Integratecryptand.run with
your favorite tools
Automate secure sharing with desktop applications, command-line tools, and custom workflows.
Choose Your Platform
Native integration for Windows, macOS, and Linux with pre-configured setups for instant productivity.
VS Code Extension
Upload code directly from Visual Studio Code with our official extension. Quick access to Cryptand.run sharing features right from your editor.
Download the extension
Click the download button to get the .vsix file
Install in VS Code
Use Command Palette → "Extensions: Install from VSIX"
Configure API key
Set your API key in the extension settings
Start sharing
Use Ctrl+Shift+P → "Cryptand: Upload Code"
Cryptand: Upload Selection
Upload currently selected text
Cryptand: Upload File
Upload entire active file
Cryptand: Configure Settings
Open extension settings
Cryptand: View History
See recent uploads
Custom Scripts
Ready-to-use scripts for automation and integration with your existing workflows.
API Key Request
Get access to the cryptand.run API for ShareX integration and custom applications.
Free for Personal Use
Perfect for ShareX integration and personal projects
Rate Limits
Reasonable limits to ensure service stability
Quick Approval
Most requests approved within 24 hours
API Limits (Free Tier):
API Documentation
Complete API reference for building custom integrations with cryptand.run.
Header:
X-API-Key: your_api_key_here
Or in request body:
{ "apiKey": "your_api_key_here" }
1curl -X POST https://cryptand.run/api/v1/sharex \
2 -H "Content-Type: application/json" \
3 -d '{
4 "content": "Hello, secure world!",
5 "apiKey": "your_api_key",
6 "ttl": 3600,
7 "maxReads": 5
8 }'
Base URL:
https://cryptand.run/api/v1/
Available Endpoints:
/sharex
- Upload text contentParameter | Type | Required | Description |
---|---|---|---|
content | string | Required | Text content to encrypt and share (max 100KB) |
apiKey | string | Required | Your personal API key |
ttl | number | Optional | Time to live in seconds (default: 3600, max: 30 days) |
maxReads | number | Optional | Maximum reads (default: 5, max: 100) |
language | string | Optional | Programming language for syntax highlighting (default: "auto") |
Success Response (200 OK):
1{
2 "url": "https://cryptand.run/s/abc123def456",
3 "id": "abc123def456",
4 "expiresAt": "2025-06-05T12:00:00.000Z",
5 "maxReads": 5,
6 "language": "javascript"
7}
Error Response (400/401/500):
1{
2 "error": "API key is required for ShareX uploads",
3 "code": "MISSING_API_KEY"
4}
When you set language
to "auto"
, cryptand.run automatically detects the programming language based on code patterns:
Supported Languages:
Detection Features:
- • Keywords and syntax patterns
- • File extensions and shebangs
- • Code structure analysis
- • Fallback to plaintext
1# Basic upload
2curl -X POST https://cryptand.run/api/v1/sharex \
3 -H "Content-Type: application/json" \
4 -d '{
5 "content": "console.log(\"Hello World\");",
6 "apiKey": "your_api_key_here",
7 "language": "javascript"
8 }'
9
10# With custom settings
11curl -X POST https://cryptand.run/api/v1/sharex \
12 -H "Content-Type: application/json" \
13 -d '{
14 "content": "def hello():\n print(\"Hello World\")",
15 "apiKey": "your_api_key_here",
16 "ttl": 7200,
17 "maxReads": 10,
18 "language": "python"
19 }'
Code | Status | Description |
---|---|---|
MISSING_API_KEY | 400 | API key is required but not provided |
INVALID_API_KEY | 401 | The provided API key is invalid or expired |
CONTENT_TOO_LARGE | 400 | Content exceeds the 100KB limit |
EMPTY_CONTENT | 400 | Content field is empty or missing |
INVALID_TTL | 400 | TTL value is invalid (max 30 days) |
RATE_LIMITED | 429 | Too many requests, please slow down |
Connect with the Community
Get help with API integration, report issues, or discuss features