Sharokey API Documentation - Zero Knowledge Secret Sharing Platform β
π Secure Secret Sharing API with Zero Knowledge Encryption β
Welcome to the complete developer documentation for Sharokey, the secure secret sharing platform with Zero Knowledge encryption technology.
π Security First
All secrets are encrypted client-side using AES-GCM-256 + PBKDF2 (10,000 iterations) before being sent to our servers. We never see your data in plain text.
π Developer Resources and API Libraries β
π Zero Knowledge Architecture
Technical overview of our client-side encryption system.
Learn More βπ¦ Client Libraries
4 official libraries: CLI C#, Python SDK, JavaScript SDK, and JavaScript CDN for easy integration.
Browse Libraries βπ‘ CLI C# Documentation
Cross-platform command-line tool for automation, scripting, and CI/CD integration.
CLI Guide βπ Code Examples
See all CLI examples adapted to every library with side-by-side comparison.
Browse Examples ββ‘ Quick Start Guide - Getting Started with Sharokey API β
Choose your preferred development approach to start using Sharokey secure secret sharing:
# Download the CLI
curl -O https://github.com/sharokey/cli/releases/latest/download/sharokey.exe
# Configure your token
sharokey config --token YOUR_API_TOKEN
# Create your first secret
sharokey create "My secret password" --hours 24 --views 1
# Install via pip
pip install sharokey
# Configure and use
from sharokey import SharokeyClient
client = SharokeyClient(token='YOUR_API_TOKEN')
secret = await client.create('My secret', 24, 1)
print(secret.share_url)
# Install via NPM
npm install Sharokey/sharokey-js
# Configure and use
import Sharokey from 'sharokey-js';
Sharokey.config({ token: 'YOUR_API_TOKEN' });
const secret = await Sharokey.create('My secret', 24, 1);
console.log(secret.share_url);
<!-- Include the script -->
<script src="https://cdn.jsdelivr.net/gh/Sharokey/sharokey-cdn@latest/sharokey.js"></script>
<script>
// Configure and use
Sharokey.config({ token: 'YOUR_API_TOKEN' });
const secret = await Sharokey.create('My secret', 24, 1);
console.log(secret.share_url);
</script>
π Zero Knowledge Encryption Architecture - How Sharokey Protects Your Secrets β
How it works:
- Your data never leaves your device in plain text
- Encryption happens in your browser/application
- Two-key system: KeyA (stored on server) + KeyB (in share URL)
- Both keys required to decrypt the secret
- We can't decrypt your data - true Zero Knowledge
π Sharokey API Features - Complete Secret Management Solution β
Feature | Description |
---|---|
π Zero Knowledge | Client-side encryption, we never see your secrets |
π File Attachments | Upload files up to 10MB with your secrets |
π± OTP Protection | Email & SMS verification for extra security |
β° Expiration Control | Time and view limits for automatic cleanup |
π Multi-domain | Custom domains for branded secret sharing |
π Usage Analytics | Track secret creation and access patterns |
π REST API | Complete programmatic access |
π 4 Libraries | CLI, Python SDK, JavaScript SDK, and JavaScript CDN - choose your stack |
π¦ How to Get Your Sharokey API Token - Authentication Setup β
- Sign up at sharokey.com
- Go to Settings β API Tokens
- Create a new token with appropriate scopes
- Copy your token and keep it secure
π Token Security
Never commit your API tokens to version control or expose them in client-side code. Store them as environment variables or in secure configuration files.
π Complete API Documentation Sections β
π Zero Knowledge Security Implementation β
All client libraries implement mandatory client-side AES-GCM-256 encryption. The raw REST API cannot be used directly due to our Zero Knowledge architecture - ensuring your secrets remain private.
π¦ Official Client Libraries - Multi-Language SDK Support β
Choose from our official libraries for different programming languages with installation guides, code examples, and feature comparisons:
- CLI C# Tool: Cross-platform command-line interface for automation and scripting
- Python SDK: Async/await package with comprehensive type hints and error handling
- JavaScript SDK: NPM package with TypeScript support and Node.js/Browser compatibility
- JavaScript CDN Library: Browser-ready library with zero dependencies
π Frequently Asked Questions (FAQ) β
What is Zero Knowledge encryption? β
Zero Knowledge encryption means your data is encrypted on your device before transmission. Sharokey servers never see your plain text secrets - we only store encrypted data that we cannot decrypt.
Which programming languages are supported? β
Currently supported: C# (CLI tool), Python (SDK), and JavaScript (SDK + CDN library). All four libraries provide identical functionality and security features.
Can I use Sharokey for enterprise applications? β
Yes, Sharokey supports custom domains, usage analytics, and enterprise-grade security features suitable for business applications.
How secure are my secrets? β
Extremely secure. We use AES-GCM-256 encryption with PBKDF2 key derivation (10,000 iterations). Even if our servers were compromised, your data would remain encrypted and unreadable.
π€ Support & Community β
- π§ Email: [email protected]
- π Bug Reports: GitHub Issues
- π Blog: Technical articles
π License β
This documentation is released under the MIT License.
Sharokey API is a commercial service with free tier available.