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.
npx claudepluginhub killvxk/cybersecurity-skills-zhThis skill uses the workspace's default tool permissions.
端对端加密(E2EE,End-to-End Encryption)确保只有通信双方能够读取消息,任何中间方(包括服务器)都无法解密。本技能实现 Signal 协议的双棘轮(Double Ratchet)算法简化版本,使用 X25519 进行密钥交换,HKDF 进行密钥派生,AES-256-GCM 进行消息加密。
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.
Provides secure-by-default patterns for encryption at rest with SQLCipher AES-256-GCM, Argon2id key derivation, key management, and secure memory in Python, TypeScript, Rust, Go.
Share bugs, ideas, or general feedback.
端对端加密(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 |
每条消息使用从棘轮链派生的唯一加密密钥。密钥使用后立即删除,确保当前状态的泄露不会暴露之前发送/接收的消息。