Klyra’s Trustless Mode provides end-to-end encrypted (E2EE) content moderation, allowing you to moderate sensitive content without ever exposing the plaintext to Klyra’s servers. This zero-knowledge approach ensures maximum privacy and security for applications where data confidentiality is critical.
Trustless Mode is available on Business and Enterprise plans. Contact us to enable this feature.
import { KlyraClient } from '@klyra/sdk';import { generateTrustlessKey } from '@klyra/crypto';// Generate a secure encryption keyconst encryptionKey = await generateTrustlessKey();// Store this key securely - it never leaves your applicationconsole.log('Encryption Key:', encryptionKey);
The SDK handles all encryption and decryption automatically. Use the API as you normally would:
Copy
// The content will be encrypted automatically before sendingconst result = await klyra.moderateText({ content: "This is sensitive content that will be encrypted", settings: { categories: ["toxic", "harassment"] }});console.log(result);