/cybersecurity-skills-zh:implementing-end-to-end-encryption-for-messagingfrom cybersecurity-skills-zh
Implements a simplified Signal Protocol Double Ratchet algorithm for end-to-end encrypted messaging, using X25519 key exchange, HKDF key derivation, and AES-256-GCM encryption.
Ships in cybersecurity-skills-zh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
端对端加密(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 |
每条消息使用从棘轮链派生的唯一加密密钥。密钥使用后立即删除,确保当前状态的泄露不会暴露之前发送/接收的消息。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
e2ee, signal-protocol, double-ratchet, x3dh, forward-secrecy
npx claudepluginhub killvxk/cybersecurity-skills-zh --plugin cybersecurity-skills-zh735 skills in this plugin
/acquiring-disk-image-with-dd-and-dcfldd使用 dd 和 dcfldd 创建取证级逐位磁盘镜像,通过哈希验证保持证据完整性。/analyzing-active-directory-acl-abuse使用 ldap3 检测 Active Directory 中危险的 ACL 配置错误,识别 GenericAll、WriteDACL 和 WriteOwner 等滥用路径/analyzing-android-malware-with-apktool使用 apktool 进行反编译、jadx 恢复 Java 源码、androguard 进行权限分析,对 Android APK 恶意软件样本执行静态分析,包括清单检查和可疑 API 调用检测。Other plugins' skills for the same job