Developer documentation

Developer Hub

Embed 9-layer zero-knowledge encryption into your product — REST API, SDKs, an open specification and test vectors.

API Documentation

Complete API reference for DCP encryption

Code examples

Ready-made integration and usage examples

SDK Libraries

SDKs for all popular programming languages

API Keys

Managing access keys and authentication

DCP Protocol

Digital Cryptographic Protocol - a multi-layer cryptographic protocol for secure data transfer

5-layer architecture

Transport Encryption, Key Exchange, Packet Signature, GDO, Adaptive Trust Layer

3 operating modes

Standard, Secure, Paranoid - pick the optimal balance between speed and security

Post-quantum cryptography

Nine layers of AES-256-GCM ⇄ ChaCha20-Poly1305

// Quick start - DCP Client

1. Installation

npm install @humanscode/dcp-client

2. Initialize the client

import { DCPClient } from '@humanscode/dcp-client';

const client = new DCPClient({
  apiUrl: 'https://dcpprotocol.link',
  apiKey: 'your-api-key',
  mode: 'standard' // or 'secure', 'paranoid'
});

3. Encrypt data

// Encrypt text
const encrypted = await client.encrypt({
  data: 'Confidential data',
  recipientId: 'user-123'
});

console.log(encrypted.encryptedData);

4. Decrypt data

// Decrypt
const decrypted = await client.decrypt({
  encryptedData: encrypted.encryptedData,
  sessionId: encrypted.sessionId
});

console.log(decrypted.data);

5. Working with files

// Encrypt a file
const fileResult = await client.encryptFile({
  file: fileBlob,
  recipientId: 'user-123'
});

// Decrypt a file
const decryptedFile = await client.decryptFile({
  encryptedData: fileResult.encryptedData,
  sessionId: fileResult.sessionId
});
// API Endpoints

POST /api/encrypt

Encrypt data

{
  "data": "string",
  "recipientId": "string",
  "mode": "standard" | "secure" | "paranoid"
}

POST /api/decrypt

Decrypt data

{
  "encryptedData": "string",
  "sessionId": "string"
}
// Resources

Additional resources

Everything you need for a successful integration

GitHub repositories

Open-source SDKs and integration examples

API Reference

Complete documentation of all API endpoints

Developer support

Technical support and consulting

Ready to integrate?

Get access to the SDKs and start integrating today