ElGamal Cryptography Explained in Hindi & English | एलगामल क्रिप्टोग्राफी (Complete Notes for Data Science & Information Security Students)
एलगामल क्रिप्टोग्राफी (ElGamal Cryptography)
परिचय:
ElGamal Cryptography एक महत्वपूर्ण Asymmetric Key Cryptographic Algorithm है जिसे 1985 में Taher ElGamal ने प्रस्तुत किया था। यह एल्गोरिद्म Diffie-Hellman Key Exchange के सिद्धांत पर आधारित है और डेटा सुरक्षा, गोपनीयता और डिजिटल सिग्नेचर में व्यापक रूप से उपयोग किया जाता है।
ElGamal सिस्टम की मुख्य विशेषता यह है कि यह सार्वजनिक (Public) और निजी (Private) कुंजियों का उपयोग करके संदेशों को सुरक्षित रूप से एन्क्रिप्ट और डिक्रिप्ट करता है। यह एल्गोरिद्म **गणितीय कठिन समस्या** — Discrete Logarithm Problem — पर आधारित है, जिसे हल करना बहुत कठिन है।
एलगामल क्रिप्टोग्राफी का महत्व:
- यह Diffie-Hellman की अवधारणा का व्यावहारिक रूप है।
- Public Key Cryptography का एक मजबूत रूप।
- Digital Signatures और Secure Communications में उपयोगी।
- ब्लॉकचेन और इलेक्ट्रॉनिक वोटिंग सिस्टम्स में अपनाया गया।
गणितीय आधार:
ElGamal Cryptosystem की सुरक्षा **Discrete Logarithm Problem (DLP)** पर आधारित है। इसका अर्थ है कि यदि किसी संख्या y और आधार g के लिए y = g^x mod p ज्ञात है, तो x निकालना गणनात्मक रूप से बहुत कठिन है।
मुख्य पैरामीटर्स:
- p: एक बड़ा अभाज्य संख्या (prime number)
- g: primitive root modulo p
- x: निजी कुंजी (Private Key)
- y: सार्वजनिक कुंजी (Public Key), जहाँ y = g^x mod p
1️⃣ कुंजी निर्माण (Key Generation):
- एक बड़ा अभाज्य संख्या p चुनें।
- p का primitive root g चुनें।
- एक निजी कुंजी x चुनें (1 < x < p–1)।
- y = g^x mod p निकालें।
Public Key = (p, g, y) Private Key = x
2️⃣ एन्क्रिप्शन प्रक्रिया (Encryption Process):
Sender, Receiver की Public Key का उपयोग करता है।
- एक रैंडम integer k चुनें (1 < k < p–1)।
- Compute a = g^k mod p
- Compute b = (y^k × M) mod p, जहाँ M = Plaintext
Ciphertext = (a, b)
3️⃣ डिक्रिप्शन प्रक्रिया (Decryption Process):
Receiver अपनी Private Key x का उपयोग करता है:
M = (b × (a^(p–1–x))) mod p
क्योंकि a^x = g^(kx), इस तरह Decryption से मूल Plaintext प्राप्त होता है।
उदाहरण:
मान लें, p = 23, g = 5, x = 6 तो y = 5^6 mod 23 = 8 Public Key = (23, 5, 8)
Sender के लिए: Plaintext M = 13, k = 10
a = 5^10 mod 23 = 9 b = (8^10 × 13) mod 23 = 20 Ciphertext = (9, 20)
Receiver के लिए: M = (20 × 9^(23–1–6)) mod 23 = 13 ✅
एलगामल की विशेषताएँ:
- Probabilistic Encryption – एक ही Plaintext हर बार अलग Ciphertext उत्पन्न करता है।
- High Security – DLP आधारित सुरक्षा।
- Asymmetric Nature – Public और Private Key अलग-अलग।
लाभ:
- गणितीय रूप से मजबूत और सुरक्षित।
- Randomness के कारण Replay Attack से सुरक्षित।
- Digital Signature Scheme में उपयोगी।
- Public Key Sharing सरल।
सीमाएँ:
- Computation-intensive (RSA की तुलना में धीमा)।
- Ciphertext Size बड़ा (2 गुना Plaintext)।
- Implementation में ध्यान आवश्यक।
वास्तविक जीवन उपयोग:
- PGP (Pretty Good Privacy)
- Digital Signatures
- Blockchain Systems
- Cloud Security
- Electronic Voting Systems
एलगामल बनाम आरएसए तुलना:
| पैरामीटर | ElGamal | RSA |
|---|---|---|
| Mathematical Basis | Discrete Logarithm | Prime Factorization |
| Type | Probabilistic | Deterministic |
| Speed | Slower | Faster |
| Security | Very High | High |
| Ciphertext Size | Large | Compact |
निष्कर्ष:
ElGamal Cryptography आधुनिक Public Key Systems का एक अत्यंत शक्तिशाली और सुरक्षित रूप है। इसका आधार Discrete Logarithm Problem है, जो इसे RSA से भी अधिक जटिल बनाता है। डिजिटल सिग्नेचर और ब्लॉकचेन में इसका उपयोग इसे वर्तमान युग के साइबर सुरक्षा ढांचे का अभिन्न हिस्सा बनाता है।
Related Post
- Introduction to Security Concepts | सुरक्षा अवधारणाओं का परिचय
- The Need for Security | सुरक्षा की आवश्यकता
- Security Approaches | सुरक्षा के दृष्टिकोण
- Principles of Security | सुरक्षा के सिद्धांत
- Types of Security Attacks | सुरक्षा आक्रमणों के प्रकार
- Security Services | सुरक्षा सेवाएँ
- Security Mechanisms | सुरक्षा तंत्र
- A Model for Network Security | नेटवर्क सुरक्षा का मॉडल
- Cryptography Concepts and Techniques | क्रिप्टोग्राफी की अवधारणाएँ और तकनीकें
- Plain Text and Cipher Text Explained in Cryptography | क्रिप्टोग्राफी में साधारण पाठ और कूट पाठ की व्याख्या
- Substitution Techniques in Cryptography Explained in Hindi & English | क्रिप्टोग्राफी में प्रतिस्थापन तकनीकें (Substitution Techniques in Cryptography Notes for Data Science Students)
- Transposition Techniques in Cryptography Explained in Hindi & English | क्रिप्टोग्राफी में स्थानांतरण तकनीकें (Transposition Cipher Notes for Data Science & Information Security Students)
- Encryption and Decryption in Cryptography Explained in Hindi & English | क्रिप्टोग्राफी में एन्क्रिप्शन और डिक्रिप्शन की प्रक्रिया (Complete Notes for Data Science & Information Security Students)
- Symmetric and Asymmetric Key Cryptography Explained in Hindi & English | समान और असमान कुंजी क्रिप्टोग्राफी (Complete Notes for Data Science & Information Security Students)
- Steganography and Its Role in Cryptography Explained in Hindi & English | स्टेग्नोग्राफी और क्रिप्टोग्राफी में इसका महत्व (Complete Notes for Data Science & Information Security Students)
- Key Range and Key Size in Cryptography Explained in Hindi & English | क्रिप्टोग्राफी में कुंजी रेंज और कुंजी आकार (Complete Notes for Data Science & Information Security Students)
- Possible Types of Attacks in Cryptography Explained in Hindi & English | क्रिप्टोग्राफी में संभावित हमलों के प्रकार (Complete Notes for Data Science & Information Security Students)
- Block Cipher Principles in Cryptography Explained in Hindi & English | ब्लॉक सिफर सिद्धांत क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- DES (Data Encryption Standard) Algorithm Explained in Hindi & English | डीईएस एल्गोरिद्म क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- AES (Advanced Encryption Standard) Algorithm Explained in Hindi & English | एईएस एल्गोरिद्म क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Blowfish Algorithm in Cryptography Explained in Hindi & English | ब्लोफिश एल्गोरिद्म क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- RC5 Algorithm in Cryptography Explained in Hindi & English | आरसी5 एल्गोरिद्म क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- IDEA (International Data Encryption Algorithm) Explained in Hindi & English | आइडिया एल्गोरिद्म क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Block Cipher Modes of Operation Explained in Hindi & English | ब्लॉक सिफर के संचालन मोड क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Stream Ciphers and RC4 Algorithm Explained in Hindi & English | स्ट्रीम सिफर और आरसी4 एल्गोरिद्म क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Principles of Public Key Cryptosystems Explained in Hindi & English | सार्वजनिक कुंजी क्रिप्टोसिस्टम के सिद्धांत (Complete Notes for Data Science & Information Security Students)
- RSA Algorithm in Cryptography Explained in Hindi & English | आरएसए एल्गोरिद्म क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- ElGamal Cryptography Explained in Hindi & English | एलगामल क्रिप्टोग्राफी (Complete Notes for Data Science & Information Security Students)
- Diffie-Hellman Key Exchange Explained in Hindi & English | डिफी-हेलमैन की एक्सचेंज (Complete Notes for Data Science & Information Security Students)
- Knapsack Algorithm in Cryptography Explained in Hindi & English | नैपसैक एल्गोरिद्म क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Message Authentication in Cryptography Explained in Hindi & English | संदेश प्रमाणीकरण क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Secure Hash Algorithm (SHA-512) in Cryptography Explained in Hindi & English | सिक्योर हैश एल्गोरिद्म (SHA-512) क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Message Authentication Codes (MAC), HMAC & CMAC Explained in Hindi & English | मैसेज ऑथेंटिकेशन कोड्स (MAC), HMAC और CMAC क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Digital Signatures and ElGamal Digital Signature Scheme Explained in Hindi & English | डिजिटल हस्ताक्षर और एलगामल डिजिटल सिग्नेचर स्कीम क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Symmetric Key Distribution using Symmetric & Asymmetric Encryption Explained in Hindi & English | सममित कुंजी वितरण (सिमेट्रिक और असिमेट्रिक एन्क्रिप्शन द्वारा) क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Distribution of Public Keys in Cryptography Explained in Hindi & English | पब्लिक कुंजियों का वितरण क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- Kerberos Authentication System in Cryptography Explained in Hindi & English | केरबरोस प्रमाणीकरण प्रणाली क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)
- X.509 Authentication Service in Cryptography Explained in Hindi & English | एक्स.509 प्रमाणीकरण सेवा क्रिप्टोग्राफी में (Complete Notes for Data Science & Information Security Students)