详细分析 ▾
运行时依赖
版本
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.
安装命令 点击复制
技能文档
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
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制