From cybersecurity-skills
Implements simplified Signal Protocol E2EE for messaging using X25519, HKDF, and AES-256-GCM. Useful for adding forward-secret encrypted messaging to applications.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cybersecurity-skills:implementing-end-to-end-encryption-for-messagingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
End-to-end encryption (E2EE) ensures that only the communicating parties can read messages, with no intermediary (including the server) able to decrypt them. This skill implements a simplified version of the Signal Protocol's Double Ratchet algorithm, using X25519 for key exchange, HKDF for key derivation, and AES-256-GCM for message encryption.
End-to-end encryption (E2EE) ensures that only the communicating parties can read messages, with no intermediary (including the server) able to decrypt them. This skill implements a simplified version of the Signal Protocol's Double Ratchet algorithm, using X25519 for key exchange, HKDF for key derivation, and AES-256-GCM for message encryption.
| Component | Purpose | Algorithm |
|---|---|---|
| X3DH | Initial key agreement | X25519 |
| Double Ratchet | Ongoing key management | X25519 + HKDF + AES-GCM |
| Sending Chain | Per-message encryption keys | HMAC-SHA256 chain |
| Receiving Chain | Per-message decryption keys | HMAC-SHA256 chain |
| Root Chain | Derives new chain keys on DH ratchet | HKDF |
Each message uses a unique encryption key derived from a ratcheting chain. After a key is used, it is deleted, ensuring that compromise of the current state does not reveal previously sent/received messages.
npx claudepluginhub mukul975/anthropic-cybersecurity-skills --plugin cybersecurity-skillsImplements a simplified Signal Protocol Double Ratchet algorithm for end-to-end encrypted messaging using X25519, HKDF, and AES-256-GCM. Useful for adding E2EE to messaging apps.
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.