AI Agent Hub
Back to skills
OpenClaw Backend Data Encryption icon

OpenClaw Backend Data Encryption

Development Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_3faf7a6b/backend-encryption according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem It Solves

OpenClaw agents may need to store keys, session state, or sensitive metadata when running in Node.js/backend, CLI, or background environments. backend-encryption targets this by using the Node.js crypto module instead of browser-side Web Crypto, with a local, offline, layered key model.

How It Works

  • Master key: derived from a passphrase with crypto.pbkdf2; a persisted Salt lets the same passphrase recover the same Master Key after reboot.
  • Key wrapping: a random KEK is encrypted by the MK; scoped DEKs are protected by the KEK, avoiding cleartext key storage.
  • Algorithm and network: keys are wrapped with AES-256-GCM; no external network requests are made.
  • Isolation: storage keys follow ${userId}:${channelId}:key, separating users and channels in concurrent backends.

Boundaries

This skill is Local Manual Mode, suitable for CLIs, background tasks, or server-side agents, not for automatic re-login, remote decryption, or cross-machine passphrase-free recovery. After reboot, a passphrase is required to unlock. If underlying storage leaks, keys for different users remain structurally separated, but config files, passphrase, and storage permissions still need protection.

Use Cases

  • Restore a local key vault after a Node.js backend agent reboot using a passphrase-derived Master Key.
  • Store session keys for a multi-user API with userId and channelId partitioning and no cleartext keys.
  • Protect asset metadata in a CLI tool by wrapping DEKs with a KEK before writing to local storage.
  • Audit local encryption logic to confirm it uses Node crypto without external network requests.

Best For

  • Engineers maintaining Node.js backend agents need local offline key management.
  • Developers building multi-user channel services need cryptographic user isolation.
  • Security engineers writing CLI tools need PBKDF2 and AES-256-GCM key wrapping.
  • Architects reviewing OpenClaw local storage need assurance against network calls and cleartext keys.