[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FF1NK1YBWST73EQKP4T30F":3,"skill-same:01M7FF1NK1YBWST73EQKP4T30F":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7FF1NK1YBWST73EQKP4T30F","implementing-end-to-end-encryption-for-messaging",null,"Implements a simplified Signal Protocol-style end-to-end encryption scheme for messaging, covering key exchange, forward secrecy, and the core cryptographic components so no server or intermediary can decrypt messages. Use when designing or building E2EE messaging, or evaluating forward-secrecy and key-management tradeoffs for a messaging system.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fimplementing-end-to-end-encryption-for-messaging\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: implementing-end-to-end-encryption-for-messaging\ndescription: Implements a simplified Signal Protocol-style end-to-end encryption scheme for messaging, covering key exchange, forward secrecy, and the core cryptographic components so no server or intermediary can decrypt messages. Use when designing or building E2EE messaging, or evaluating forward-secrecy and key-management tradeoffs for a messaging system.\ndomain: cybersecurity\nsubdomain: cryptography\ntags:\n- cryptography\n- encryption\n- e2e\n- messaging\n- signal-protocol\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.DS-01\n- PR.DS-02\n- PR.DS-10\nmitre_attack:\n- T1600\n- T1573\n- T1553\n- T1486\n---\n# Implementing End-to-End Encryption for Messaging\n\n## Overview\n\nEnd-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.\n\n\n## When to Use\n\n- When deploying or configuring implementing end to end encryption for messaging capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Familiarity with cryptography concepts and tools\n- Access to a test or lab environment for safe execution\n- Python 3.8+ with required dependencies installed\n- Appropriate authorization for any testing activities\n\n## Objectives\n\n- Implement X25519 Diffie-Hellman key exchange for session establishment\n- Build the Double Ratchet key management algorithm\n- Encrypt and decrypt messages with per-message keys\n- Implement forward secrecy (compromise of current key does not reveal past messages)\n- Handle out-of-order message delivery\n- Implement key agreement using X3DH (Extended Triple Diffie-Hellman)\n\n## Key Concepts\n\n### Signal Protocol Components\n\n| Component | Purpose | Algorithm |\n|-----------|---------|-----------|\n| X3DH | Initial key agreement | X25519 |\n| Double Ratchet | Ongoing key management | X25519 + HKDF + AES-GCM |\n| Sending Chain | Per-message encryption keys | HMAC-SHA256 chain |\n| Receiving Chain | Per-message decryption keys | HMAC-SHA256 chain |\n| Root Chain | Derives new chain keys on DH ratchet | HKDF |\n\n### Forward Secrecy\n\nEach 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\u002Freceived messages.\n\n## Security Considerations\n\n- Delete message keys immediately after decryption\n- Implement message ordering and replay protection\n- Use authenticated encryption (AES-GCM) for all messages\n- Protect identity keys with device-level security\n- Verify identity keys out-of-band (safety numbers)\n\n## Validation Criteria\n\n- [ ] X25519 key exchange produces shared secret\n- [ ] Messages encrypt and decrypt correctly between two parties\n- [ ] Different messages produce different ciphertexts\n- [ ] Forward secrecy: old keys cannot decrypt new messages\n- [ ] Out-of-order messages can be decrypted\n- [ ] Tampered messages are rejected by authentication\n","# Implementing End-to-End Encryption for Messaging\n\n## Overview\n\nEnd-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.\n\n\n## When to Use\n\n- When deploying or configuring implementing end to end encryption for messaging capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Familiarity with cryptography concepts and tools\n- Access to a test or lab environment for safe execution\n- Python 3.8+ with required dependencies installed\n- Appropriate authorization for any testing activities\n\n## Objectives\n\n- Implement X25519 Diffie-Hellman key exchange for session establishment\n- Build the Double Ratchet key management algorithm\n- Encrypt and decrypt messages with per-message keys\n- Implement forward secrecy (compromise of current key does not reveal past messages)\n- Handle out-of-order message delivery\n- Implement key agreement using X3DH (Extended Triple Diffie-Hellman)\n\n## Key Concepts\n\n### Signal Protocol Components\n\n| Component | Purpose | Algorithm |\n|-----------|---------|-----------|\n| X3DH | Initial key agreement | X25519 |\n| Double Ratchet | Ongoing key management | X25519 + HKDF + AES-GCM |\n| Sending Chain | Per-message encryption keys | HMAC-SHA256 chain |\n| Receiving Chain | Per-message decryption keys | HMAC-SHA256 chain |\n| Root Chain | Derives new chain keys on DH ratchet | HKDF |\n\n### Forward Secrecy\n\nEach 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\u002Freceived messages.\n\n## Security Considerations\n\n- Delete message keys immediately after decryption\n- Implement message ordering and replay protection\n- Use authenticated encryption (AES-GCM) for all messages\n- Protect identity keys with device-level security\n- Verify identity keys out-of-band (safety numbers)\n\n## Validation Criteria\n\n- [ ] X25519 key exchange produces shared secret\n- [ ] Messages encrypt and decrypt correctly between two parties\n- [ ] Different messages produce different ciphertexts\n- [ ] Forward secrecy: old keys cannot decrypt new messages\n- [ ] Out-of-order messages can be decrypted\n- [ ] Tampered messages are rejected by authentication\n",{"name":5,"tags":24,"author":30,"domain":31,"license":15,"version":32,"nist_csf":33,"subdomain":25,"description":7,"mitre_attack":37},[25,26,27,28,29],"cryptography","encryption","e2e","messaging","signal-protocol","mahipal","cybersecurity","1.0",[34,35,36],"PR.DS-01","PR.DS-02","PR.DS-10",[38,39,40,41],"T1600","T1573","T1553","T1486","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","07-后端与架构\u002Fimplementing-end-to-end-encryption-for-messaging",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill implementing-end-to-end-encryption-for-messaging",{"tool":56,"command":57},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill implementing-end-to-end-encryption-for-messaging",{"tool":59,"command":60},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill implementing-end-to-end-encryption-for-messaging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fimplementing-end-to-end-encryption-for-messaging\u002FSKILL.md",true,[64,70,74],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fapi-reference.md","REFERENCE","参考文档",1890,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fimplementing-end-to-end-encryption-for-messaging\u002Freferences\u002Fapi-reference.md",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fstandards.md",1467,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fimplementing-end-to-end-encryption-for-messaging\u002Freferences\u002Fstandards.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fworkflows.md",3034,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fimplementing-end-to-end-encryption-for-messaging\u002Freferences\u002Fworkflows.md",[79,87,92,99,106,113],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":88,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]