Skip to content

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:

bash
# 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
bash
# 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)
bash
# 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);
html
<!-- 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:

  1. Your data never leaves your device in plain text
  2. Encryption happens in your browser/application
  3. Two-key system: KeyA (stored on server) + KeyB (in share URL)
  4. Both keys required to decrypt the secret
  5. We can't decrypt your data - true Zero Knowledge

🌟 Sharokey API Features - Complete Secret Management Solution ​

FeatureDescription
πŸ” Zero KnowledgeClient-side encryption, we never see your secrets
πŸ“Ž File AttachmentsUpload files up to 10MB with your secrets
πŸ“± OTP ProtectionEmail & SMS verification for extra security
⏰ Expiration ControlTime and view limits for automatic cleanup
🌍 Multi-domainCustom domains for branded secret sharing
πŸ“Š Usage AnalyticsTrack secret creation and access patterns
πŸ”Œ REST APIComplete programmatic access
πŸ“š 4 LibrariesCLI, Python SDK, JavaScript SDK, and JavaScript CDN - choose your stack

🚦 How to Get Your Sharokey API Token - Authentication Setup ​

  1. Sign up at sharokey.com
  2. Go to Settings β†’ API Tokens
  3. Create a new token with appropriate scopes
  4. 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 ​

πŸ“œ License ​

This documentation is released under the MIT License.
Sharokey API is a commercial service with free tier available.


Released under the MIT License.