मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग35k · #8035

implementing-end-to-end-encryption-for-messaging

यह क्या करती है

यह टूल एक ऐसा मैसेजिंग सिस्टम बनाने में मदद करता है जिसमें सिर्फ़ बात करने वाले लोग ही मैसेज पढ़ सकें। मैसेज भेजने वाला सर्वर भी उन्हें नहीं पढ़ सकता। सुरक्षा सुनिश्चित करने के लिए यह उन्नत एन्क्रिप्शन तरीकों का उपयोग करता है।

कब इस्तेमाल करें

  • ✓एक सुरक्षित मैसेजिंग ऐप बनाते समय।
  • ✓बातचीत की सुरक्षा के लिए व्यवस्था सेट करते समय।
  • ✓यह आकलन करते समय कि मैसेज को जासूसी से कैसे बचाया जाए।

Skill का लिंक

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-end-to-end-encryption-for-messaging/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-end-to-end-encryption-for-messaging/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं अपनी चैट ऐप्लिकेशन के लिए end-to-end encryption कैसे सेट कर सकता हूँ?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह 'Signal Protocol' नाम के तरीके से हर मैसेज के लिए अलग-अलग सुरक्षा keys बनाता है। ये keys सुनिश्चित करती हैं कि अगर कोई मैसेज बीच में पकड़ भी ले, तो उसे पढ़ा न जा सके।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Implementing End-to-End Encryption for Messaging

Overview

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.

When to Use

  • When deploying or configuring implementing end to end encryption for messaging capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Familiarity with cryptography concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Objectives

  • Implement X25519 Diffie-Hellman key exchange for session establishment
  • Build the Double Ratchet key management algorithm
  • Encrypt and decrypt messages with per-message keys
  • Implement forward secrecy (compromise of current key does not reveal past messages)
  • Handle out-of-order message delivery
  • Implement key agreement using X3DH (Extended Triple Diffie-Hellman)

Key Concepts

Signal Protocol Components

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

Forward Secrecy

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.

Security Considerations

  • Delete message keys immediately after decryption
  • Implement message ordering and replay protection
  • Use authenticated encryption (AES-GCM) for all messages
  • Protect identity keys with device-level security
  • Verify identity keys out-of-band (safety numbers)

Validation Criteria

  • X25519 key exchange produces shared secret
  • Messages encrypt and decrypt correctly between two parties
  • Different messages produce different ciphertexts
  • Forward secrecy: old keys cannot decrypt new messages
  • Out-of-order messages can be decrypted
  • Tampered messages are rejected by authentication
अक्सर पूछे जाने वाले सवाल

end-to-end encryption क्या है?

यह एक सुरक्षा तरीका है जो सुनिश्चित करता है कि आपके मैसेज सिर्फ़ आप और जिससे आप बात कर रहे हैं वही पढ़ सकें। कोई और नहीं, यहाँ तक कि सेवा देने वाली कंपनी भी नहीं।

'forward secrecy' क्या है?

इसका मतलब है कि अगर मौजूदा सुरक्षा key लीक हो जाए, तब भी पुराने मैसेज सुरक्षित रहेंगे और उन्हें पढ़ा नहीं जा सकेगा।

क्या इसे इस्तेमाल करने के लिए cryptography का विशेषज्ञ होना ज़रूरी है?

बेहतर होगा कि आपको थोड़ी बुनियादी जानकारी हो, लेकिन यह टूल प्रक्रिया को आसान बना देता है ताकि आप विशेषज्ञ बने बिना सुरक्षा लागू कर सकें।

जानकारी

लेखक का मूल विवरण

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.

repo: mukul975/Anthropic-Cybersecurity-Skills

लोकप्रियता

GitHub स्टार
35k
रैंकिंग में स्थान
#8035
लाइसेंस
Apache-2.0
अपडेट की गई
31/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills