返回顶部
a

a2a-e2ee-encryption端到端加密

|

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
145
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

a2a-e2ee-encryption

A2A端到端加密

提供用于安全代理间通信的加密工具。

特性

  • - 密钥生成:用于非对称加密的RSA密钥对生成
  • 消息加密:使用接收方公钥加密消息
  • 消息解密:使用自身私钥解密消息
  • 密钥交换:安全的密钥交换协议
  • 密钥轮换:支持自动密钥轮换
  • 消息完整性:基于HMAC的消息认证

用法

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

// 生成密钥对
const keyPair = e2ee.generateKeyPair();

// 加密消息
const encrypted = e2ee.encrypt(秘密消息, 接收方公钥);

// 解密消息
const decrypted = e2ee.decrypt(encrypted, 私钥);

// 导出/导入密钥
const exported = e2ee.exportKey(keyPair.publicKey);
const imported = e2ee.importKey(exported);

架构

┌─────────────┐ ┌─────────────┐
│ 代理A │ │ 代理B │
│ │ │ │
│ 私钥 │ │ 私钥 │
│ 公钥 │◄──── 交换 ────────►│ 公钥 │
│ │ │ │
│ 加密 │──── 加密消息 ─────►│ 解密 │
│ 使用B的 │ │ 使用A的 │
│ 公钥 │ │ 公钥 │
└─────────────┘ └─────────────┘

安全注意事项

  1. 1. 密钥存储:私钥应安全存储(环境变量、保险库)
  2. 密钥轮换:定期轮换密钥以实现前向保密
  3. 密钥验证:使用前始终验证密钥指纹
  4. 消息大小:大消息应使用混合加密

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 a2a-e2ee-encryption-1776017296 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 a2a-e2ee-encryption-1776017296 技能

通过命令行安装

skillhub install a2a-e2ee-encryption-1776017296

下载

⬇ 下载 a2a-e2ee-encryption v1.0.0(免费)

文件大小: 4.54 KB | 发布时间: 2026-4-13 09:07

v1.0.0 最新 2026-4-13 09:07
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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部