OpenClaw Backend Data Encryption
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 persistedSaltlets the same passphrase recover the same Master Key after reboot. - Key wrapping: a random
KEKis encrypted by theMK; scopedDEKs are protected by theKEK, 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.
Related Skills
Creates themed learning sites by generating flashcards, lessons, quizzes, index, and progress pages into a deployable website.
End-to-end mathematical optimization modeling with Gurobi and Python, covering data validation, code generation, solving, result analysis, and iterative revision.
Executes an Eversheet Web CDP login using externally supplied baseUrl, username, and password, then verifies the page reaches a logged-in home state.
Clarify product goals, user flows, pages, data, and permissions, then output an implementation-ready development prompt and lightweight spec.