/install backendenc
backendenc: Backend Security Toolkit
This skill provides mandatory encryption for OpenClaw agents running in Node.js/Backend environments. It operates in Local Manual Mode, using the Node.js built-in crypto module.
Context
Unlike the frontend version which uses Web Crypto, this version is designed for server-side execution, CLI tools, or background agents. It stores metadata in a persistent local file (or compatible storage provider).
Key Hierarchy
- Master Key (MK): Derived from your passphrase using
crypto.pbkdf2.- Persistence: A unique "Salt" is stored in your configuration. As long as you remember your passphrase, the same Master Key will be generated across reboots.
- Key Encryption Key (KEK): Generated randomly and encrypted by your MK.
- Data Encryption Keys (DEKs): Scoped keys (e.g.,
memory,assets) encrypted by the KEK.
Security Disclosure
- Zero Network: This skill does NOT perform any external network requests. All operations happen via the Node.js
cryptomodule. - No Cleartext Keys: Keys are never stored in cleartext. They are always "wrapped" (encrypted) by a higher-level key using AES-256-GCM.
- Passphrase Obligation: You must provide your passphrase to "unlock" the vault after هر server reboot.
Multi-User & Channel Isolation
Designed for high-concurrency backend environments:
- Key Partitioning: All storage keys follow the
${userId}:${channelId}:keyformat. - Security: Ensures that even if the underlying storage file is compromised, keys for different users remain cryptographically separated.
Usage (Backend)
import { EncryptionService } from './encryption-service.js';
// Access context IDs
const { userId, channelId } = agent.context;
// Unlock for context
await EncryptionService.unlock(userId, channelId, 'passphrase');
// Scoped encryption
const encrypted = await EncryptionService.encrypt(userId, channelId, 'history', 'data');
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install backendenc - 安装完成后,直接呼叫该 Skill 的名称或使用
/backendenc触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Backendenc 是什么?
Backend Agent Data Encryption. High-security MK->KEK->DEK hierarchy for backend environments. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 59 次。
如何安装 Backendenc?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install backendenc」即可一键安装,无需额外配置。
Backendenc 是免费的吗?
是的,Backendenc 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Backendenc 支持哪些平台?
Backendenc 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Backendenc?
由 anydefai(@anydefai)开发并维护,当前版本 v2.2.0。