UNPKG

twenty-mcp-server

Version:

Easy-to-install Model Context Protocol server for Twenty CRM. Try instantly with 'npx twenty-mcp-server setup' or install globally for permanent use.

30 lines 884 B
/** * Encryption service for securing API keys * Uses AES-256-GCM for authenticated encryption */ export declare class EncryptionService { private key; private algorithm; private saltLength; private tagLength; private ivLength; constructor(secret: string); /** * Encrypts a string value * @returns Base64 encoded string containing: salt + iv + authTag + encrypted data */ encrypt(plaintext: string): string; /** * Decrypts a base64 encoded encrypted string */ decrypt(encryptedData: string): string; /** * Safely compares two encrypted values without decrypting */ compareEncrypted(encrypted1: string, encrypted2: string): boolean; } /** * Get or create the encryption service instance */ export declare function getEncryptionService(): EncryptionService; //# sourceMappingURL=encryption.d.ts.map