Tanker is a client-side JavaScript SDK providing seamless end-to-end encryption and identity management for protecting sensitive data in applications.
Tanker client-side encryption SDK for JavaScript
This tool is used by developers to integrate strong end-to-end encryption into web and Node.js applications without requiring cryptographic expertise. It enables secure data sharing, multi-device support, and identity verification, making it ideal for applications handling sensitive user data that require robust privacy and authentication.
Tanker abstracts complex cryptographic operations and key exchanges, enabling developers without cryptographic expertise to implement secure end-to-end encryption. It requires managing user cryptographic identities and integrating with backend identity services for full functionality. Always ensure to keep the SDK updated and review the official documentation for advanced usage and security best practices.
Install the browser client SDK: npm install @tanker/client-browser
Install the Node.js client SDK: npm install @tanker/client-node
Install the identity management package: npm install @tanker/identity
Import the SDK in your JavaScript project
Initialize the Tanker environment with your appId
Start a session using the user's cryptographic identity
import { Tanker } from '@tanker/client-browser';
Import the Tanker client SDK for browser usage.
const tanker = new Tanker({ appId: '...' });
Initialize the Tanker environment with your application ID.
await tanker.start(aliceIdentity);
Start a Tanker session with the user's cryptographic identity.
const encryptedMessage = await tanker.encrypt("It's a secret to everybody", { shareWithUsers: [bobIdentity] });
Encrypt data and share it securely with specified recipients.
const message = await tanker.decrypt(encryptedMessage);
Decrypt data, throwing an error if the user is not authorized.