This skill provides mandatory encryption for OpenClaw agents. It operates in Local Manual Mode, meaning no external network requests are made, and encryption keys are derived from a user passphrase.
Master Key (MK): Derived from your passphrase using PBKDF2 (100,000 iterations).
Key Encryption Key (KEK): Generated randomly and encrypted by your MK. Stored in window.storage.
Data Encryption Keys (DEKs): Scoped keys (e.g., memory, assets) encrypted by the KEK and stored in window.storage.
crypto operations happen via standard Web APIs in your browser.Configure which scopes to protect in your settings:
history: Conversation logs.memory: Agent's semantic memory.assets: All uploaded files.javascript
import { EncryptionService } from './encryption-service.js';
// Unlock once per session
await EncryptionService.unlock('your-passphrase');
// Use throughout the session
const secretData = await EncryptionService.encrypt('memory', 'Sensitive intelligence...');