Implements simplified Signal Double Ratchet for end-to-end messaging encryption using X25519 key exchange, HKDF derivation, and AES-256-GCM. Supports forward secrecy and out-of-order messages.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cybersecurity-skills-zh:implementing-end-to-end-encryption-for-messagingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
端对端加密(E2EE,End-to-End Encryption)确保只有通信双方能够读取消息,任何中间方(包括服务器)都无法解密。本技能实现 Signal 协议的双棘轮(Double Ratchet)算法简化版本,使用 X25519 进行密钥交换,HKDF 进行密钥派生,AES-256-GCM 进行消息加密。
端对端加密(E2EE,End-to-End Encryption)确保只有通信双方能够读取消息,任何中间方(包括服务器)都无法解密。本技能实现 Signal 协议的双棘轮(Double Ratchet)算法简化版本,使用 X25519 进行密钥交换,HKDF 进行密钥派生,AES-256-GCM 进行消息加密。
| 组件 | 用途 | 算法 |
|---|---|---|
| X3DH | 初始密钥协商 | X25519 |
| Double Ratchet | 持续密钥管理 | X25519 + HKDF + AES-GCM |
| Sending Chain | 每条消息的加密密钥 | HMAC-SHA256 链 |
| Receiving Chain | 每条消息的解密密钥 | HMAC-SHA256 链 |
| Root Chain | 在 DH 棘轮时派生新链密钥 | HKDF |
每条消息使用从棘轮链派生的唯一加密密钥。密钥使用后立即删除,确保当前状态的泄露不会暴露之前发送/接收的消息。
npx claudepluginhub killvxk/cybersecurity-skills-zhImplements simplified Signal Protocol E2EE for messaging using X25519, HKDF, and AES-256-GCM. Useful for adding forward-secret encrypted messaging to applications.
Implements simplified Signal Protocol Double Ratchet for E2EE messaging with X25519, HKDF, and AES-256-GCM in Python. For secure messaging apps.
Implements simplified Signal Protocol Double Ratchet for end-to-end encryption in messaging using X25519 key exchange, HKDF derivation, and AES-256-GCM in Python. For secure messaging apps.