📦 A2a E2ee Encryption — 技能工具

v1.0.0

[自动翻译] Implements end-to-end encryption (E2EE) utilities for secure A2A (Agent-to-Agent) communication. Provides key generation, message encryption/decryptio...

0· 120·0 当前·0 累计
下载技能包
License
MIT-0
最后更新
2026/3/26
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill's code and instructions are consistent with an E2EE utility library and do not request unrelated credentials or install arbitrary software, but you should review the code and secure key storage before use.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/26

Initial release of A2A End-to-End Encryption utilities - Provides RSA key pair generation for secure agent communication. - Supports encrypting and decrypting messages between agents using asymmetric keys. - Implements secure key exchange, key rotation, and HMAC-based message authentication. - Includes key import/export utilities for easy key management. - Addresses key storage, rotation, validation, and hybrid encryption for large messages.

无害

安装命令

点击复制
官方npx clawhub@latest install a2a-e2ee-encryption
🇨🇳 镜像加速npx clawhub@latest install a2a-e2ee-encryption --registry https://cn.longxiaskill.com

技能文档

Provides encryption utilities for secure agent-to-agent communication.

Features

  • Key Generation: RSA key pair generation for asymmetric encryption
  • Message Encryption: Encrypt messages with recipient's public key
  • Message Decryption: Decrypt messages with own private key
  • Key Exchange: Secure key exchange protocols
  • Key Rotation: Automatic key rotation support
  • Message Integrity: HMAC-based message authentication

Usage

const e2ee = require('./skills/a2a-e2ee-encryption');

// Generate key pair const keyPair = e2ee.generateKeyPair();

// Encrypt message const encrypted = e2ee.encrypt('secret message', recipientPublicKey);

// Decrypt message const decrypted = e2ee.decrypt(encrypted, privateKey);

// Export/Import keys const exported = e2ee.exportKey(keyPair.publicKey); const imported = e2ee.importKey(exported);

Architecture

┌─────────────┐                    ┌─────────────┐
│   Agent A   │                    │   Agent B   │
│             │                    │             │
│ Private Key │                    │ Private Key │
│ Public Key  │◄──── Exchange ────►│ Public Key  │
│             │                    │             │
│ Encrypt     │──── Encrypted ────►│ Decrypt     │
│ with B's    │      Message       │ with A's    │
│ Public Key  │                    │ Public Key  │
└─────────────┘                    └─────────────┘

Security Considerations

  • Key Storage: Private keys should be stored securely (env vars, vault)
  • Key Rotation: Rotate keys periodically for forward secrecy
  • Key Validation: Always verify key fingerprints before use
  • Message Size: Large messages should use hybrid encryption
数据来源:ClawHub ↗ · 中文优化:龙虾技能库