BCA / B.Tech 14 min read

DES in Hindi | DES क्या है

RK

लेखक Ratan Kumawat · संस्थापक, NotesMedia

प्रकाशित:

त्वरित सारांश और मुख्य बिंदु

  • • विषय फोकस: Network Security & Cryptography | नेटवर्क सिक्यूरिटी नोट्स (BCA / B.Tech Syllabus)
  • • मुख्य विषय: DES in Hindi | DES क्या है - General Topics
  • • अवलोकन: Quick Answer: Cryptography में DES (Data Encryption Standard) एक symmetric-key block cipher algorithm है, जो 64-bit plaintext block को 56-bit secret ke...
  • • मुख्य अवधारणाएं: DES, Data encryption standard 56 bit key Feistel Hindi, Modes weaknesses 3DES,DES, Data encryption standard 56 bit key Feistel, Modes weaknesses 3DES
Quick Answer: Cryptography में DES (Data Encryption Standard) एक symmetric-key block cipher algorithm है, जो 64-bit plaintext block को 56-bit secret key की मदद से 64-bit ciphertext में बदलता है। यह 16 rounds वाले Feistel Cipher structure पर काम करता है, जिसमें substitution और permutation के ज़रिए data को encrypt किया जाता है। 56-bit key बहुत छोटी होने के कारण इसे brute-force attack से आसानी से तोड़ा जा सकता है, इसलिए अब इसकी जगह AES (Advanced Encryption Standard) का इस्तेमाल होता है।

DES क्या है? (What is DES Algorithm in Hindi)

DES का full form Data Encryption Standard है। यह computer network और security में data को सुरक्षित रखने के लिए बनाया गया सबसे प्रसिद्ध symmetric block cipher है। 1970 के दशक में IBM ने Lucifer नाम के cipher के आधार पर इसे design किया था। इसके बाद अमेरिकी एजेंसी NBS (National Bureau of Standards, जिसे अब NIST कहा जाता है) ने 1977 में इसे आधिकारिक encryption standard के रूप में मान्यता दी।

Cryptography में DES दो बुनियादी नियमों पर काम करता है:

  • Symmetric Key: Data को encrypt (lock) करने और decrypt (unlock) करने के लिए एक ही secret key का इस्तेमाल होता है। Symmetric encryption के बारे में detail में यहाँ पढ़ें: Symmetric vs Asymmetric Key in Hindi.
  • Block Cipher: यह पूरे data stream को एक-एक bit करके encrypt करने के बजाय 64-bit के blocks में बाँटकर process करता है। Network पर सुरक्षित data transfer की बुनियादी बातें समझने के लिए देखें: What is Network Security in Hindi.
Advertisement

DES की मुख्य Specifications (Features of DES)

Exam में DES के technical parameters सीधे पूछे जाते हैं। नीचे दिए गए table में इसके सभी मुख्य technical specifications दिए गए हैं:

Parameter Specification Value विवरण
Algorithm Type Symmetric Key Block Cipher Encryption और decryption के लिए same key लगती है
Block Size 64 bits एक बार में 64 bits plaintext process होता है
Input Key Size 64 bits User 64-bit key देता है
Effective Key Size 56 bits 8 bits parity check (error checking) के लिए हटाई जाती हैं
Parity Bits 8 bits (bits 8, 16, 24, 32, 40, 48, 56, 64) Algorithm की calculation में इस्तेमाल नहीं होतीं
Number of Rounds 16 rounds Feistel structure पर 16 बार operations दोहराए जाते हैं
Round Key (Subkey) Size 48 bits हर round के लिए अलग subkey बनती है
Core Structure Feistel Network Data को दो halves (Left और Right) में बाँटकर process करता है
Basic Operations Substitution (S-Box) और Permutation (P-Box) Shannon के Confusion और Diffusion principles लागू होते हैं

DES Algorithm का Architecture और Working Steps

DES का पूरा encryption process मुख्य रूप से चार बड़े steps में पूरा होता है। इसे Feistel cipher network कहते हैं। इसका सबसे बड़ा फायदा यह है कि encryption और decryption के लिए एक ही hardware circuit या software code का इस्तेमाल किया जा सकता है, बस decryption में 16 subkeys उल्टे क्रम (K16 से K1) में दी जाती हैं।

Plaintext (64-bit)
       │
       ▼
[ Initial Permutation (IP) ]
       │
       ├────────────────────────┐
       ▼ (32-bit)               ▼ (32-bit)
   Left Half (L0)           Right Half (R0)
       │                        │
       │                   ┌────┴────────┐
       │                   │ Round 1 (f) │ <── Subkey K1 (48-bit)
       │                   └────┬────────┘
       │         XOR            │
       └─────────⊕ <────────────┘
                 │
                 ▼
          (New Right R1) ── Swap ── (New Left L1 = R0)
                 │
       [ Repeat for 16 Rounds ]
                 │
       [ 32-bit Swap (R16, L16) ]
                 │
                 ▼
[ Final Permutation (FP / IP⁻¹) ]
                 │
                 ▼
Ciphertext (64-bit)

Step 1: Initial Permutation (IP)

सबसे पहले 64-bit plaintext block पर Initial Permutation (IP) लगाई जाती है। इसमें bits की value (0 या 1) नहीं बदलती, सिर्फ उनकी position को एक predefined table के अनुसार आपस में बदल दिया जाता है। Cryptography में bits की position बदलने को transposition कहते हैं: Transposition Techniques in Hindi। उदाहरण के लिए, 58वीं bit पहली position पर चली जाती है, और 50वीं bit दूसरी position पर आ जाती है।

Step 2: 32-bit Halves में विभाजन (Splitting)

Initial Permutation के बाद 64-bit block को दो बराबर 32-bit टुकड़ों में बाँटा जाता है:

  • L0 (Left Half): पहले 32 bits (bit 1 से bit 32)।
  • R0 (Right Half): आखिरी 32 bits (bit 33 से bit 64)।

Step 3: 16 Feistel Rounds

इसके बाद data 16 identical rounds से गुजरता है। हर round i (1 से 16) के लिए calculation का formula नीचे दिया गया है:

L_i = R_(i-1)
R_i = L_(i-1) ⊕ f(R_(i-1), K_i)

यहाँ ⊕ का मतलब Bitwise XOR operation है, और f round function है जो 48-bit subkey (K_i) के साथ Right half को process करता है। हर round के अंत में Left और Right halves की अदला-बदली (swap) हो जाती है।

Step 4: 32-bit Swap और Final Permutation (FP)

Round 16 पूरा होने के बाद आखिरी बार swap नहीं किया जाता (यानी R16 और L16 को जोड़कर 64-bit block बनाया जाता है)। फिर इस पर Final Permutation (FP) लगाई जाती है। Final Permutation असल में Initial Permutation का बिल्कुल उल्टा (Inverse IP या IP⁻¹) होती है। इसका output ही अंतिम 64-bit Ciphertext होता है।

DES Round Function (f-function) कैसे काम करता है?

DES की असली security इसके round function f(R, K) में होती है। यह function 32-bit Right half और 48-bit round key को input के रूप में लेता है और output में 32-bit block देता है। इसके अंदर 4 sub-steps होते हैं:

1. Expansion Permutation (E-box)

Right half केवल 32 bits का होता है, लेकिन round key 48 bits की होती है। इसलिए XOR करने से पहले 32 bits को 48 bits में expand करना पड़ता है। E-box table के ज़रिए 32 bits में से 16 bits को duplicate करके 48 bits का block बना लिया जाता है।

2. Key Mixing (XOR Operation)

E-box से मिले 48-bit expanded data को 48-bit round key (K_i) के साथ bitwise XOR किया जाता है।

3. S-box Substitution (Confusion Step)

यह DES का सबसे महत्वपूर्ण भाग है। DES में कुल 8 S-boxes (S1 से S8) होते हैं। XOR से मिले 48 bits को 6-6 bits के 8 blocks में बाँट दिया जाता है। हर 6-bit block एक specific S-box में जाता है और 4-bit output बाहर निकालता है:

  • Input: 8 × 6 bits = 48 bits
  • Output: 8 × 4 bits = 32 bits

S-box ही पूरे DES में अकेला non-linear component है, जो mathematical analysis से cipher को सुरक्षित बनाता है।

4. Straight Permutation (P-box / Diffusion Step)

8 S-boxes से निकले 32 bits को एक Straight P-box से गुजारा जाता है। P-box इन 32 bits की positions को दोबारा shuffle करता है, ताकि एक S-box का output अगले round में कई अलग-अलग S-boxes में फैल सके। इसे diffusion कहते हैं।

DES Key Generation (Key Schedule Process)

DES में मूल key 64 bits की होती है, लेकिन हर round को 48 bits की अलग subkey चाहिए होती है। 16 rounds के लिए 16 subkeys (K1 से K16) कैसे बनती हैं, इसका process नीचे समझिए:

  1. Parity Drop (PC-1): सबसे पहले 64-bit key को Permuted Choice 1 (PC-1) table से गुजारा जाता है। यह table हर 8वीं bit (8, 16, 24, 32, 40, 48, 56, 64) को parity bit मानकर हटा देती है। अब हमारे पास 56 bits बचते हैं।
  2. Splitting: इन 56 bits को 28-28 bits के दो हिस्सों में बाँटा जाता है: C0 और D0।
  3. Circular Left Shift: हर round में C और D को 1 bit या 2 bits बाईं ओर (circular left shift) घुमाया जाता है। Rounds 1, 2, 9, और 16 में सिर्फ 1-bit shift होता है, जबकि बाकी सभी 12 rounds में 2-bit shift होता है।
  4. Compression Permutation (PC-2): Shift करने के बाद दोनों halves (28 + 28 = 56 bits) को मिलाकर Permuted Choice 2 (PC-2) table से गुजारा जाता है। यह table 56 bits में से 48 bits चुनती है और 8 bits छोड़ देती है। यह 48-bit output उस round की Subkey (K_i) बन जाता है।

Solved Example: S-Box Lookup Calculation Trace

S-box कैसे 6 bits को 4 bits में बदलता है, इसे समझना exam के लिए बहुत जरूरी है। आइए S-box 1 (S1) का एक practical trace देखें:

मान लीजिए E-box और Key XOR के बाद S-box 1 को 6 bits का input मिला: 100011

  1. Row की पहचान: Input की पहली bit (1st bit) और आखिरी bit (6th bit) को जोड़कर row number निकाला जाता है।
    यहाँ पहली bit = 1 और आखिरी bit = 1 है।
    Binary 11 = Decimal में Row 3।
  2. Column की पहचान: बीच की चार bits (bits 2, 3, 4, 5) column number तय करती हैं।
    यहाँ बीच की bits = 0001 हैं।
    Binary 0001 = Decimal में Column 1।
  3. S-box Table Lookup: S1 table में Row 3 और Column 1 पर जो value रखी होगी, उसे देखा जाता है।
    मान लीजिए उस cell में decimal value 12 है।
  4. Output Conversion: 12 को 4-bit binary में बदल लिया जाता है: 1100।

इस तरह 6-bit input 100011 S-box से निकलकर 4-bit output 1100 बन गया। 8 S-boxes इसी नियम से 48 bits को 32 bits में shrink करते हैं।

Advertisement

DES की कमजोरियाँ और यह Unsafe क्यों साबित हुआ?

1970 और 1980 के दशक में DES बहुत मजबूत माना जाता था, लेकिन 1990 के बाद computer hardware की speed बहुत बढ़ गई। DES के असुरक्षित होने के मुख्य कारण नीचे दिए गए हैं:

  • 56-bit Key Space बहुत छोटा होना: 56-bit key में कुल 2⁵⁶ (लगभग 7.2 × 10¹⁶) संभव keys होती हैं। आधुनिक supercomputers और GPU clusters के लिए इतनी keys को एक-एक करके try करना बहुत आसान है। इस attack को detail में समझें: Brute Force Attack in Hindi.
  • EFF Deep Crack Machine (1998): 1998 में Electronic Frontier Foundation (EFF) ने लगभग $250,000 की लागत से एक custom hardware machine बनाई, जिसने DES encrypted data को सिर्फ 56 घंटे में crack कर दिया। बाद में distributed networks ने इसे 22 घंटे में तोड़कर दिखा दिया।
  • Weak Keys और Semi-Weak Keys: DES key generation में 4 weak keys ऐसी होती हैं जिनमें C0 और D0 के सारे bits या तो 0 होते हैं या 1। ऐसे में सभी 16 rounds में एक जैसी subkeys बन जाती हैं। इसके अलावा 12 semi-weak keys के pairs होते हैं।
  • Linear और Differential Cryptanalysis: 1990 के दशक में खोजे गए इन mathematical attacks ने DES को brute-force से भी कम समय में तोड़ने का रास्ता दिखाया।

DES vs 3DES vs AES Comparison Table

DES के कमजोर पड़ने के बाद पहले 3DES लाया गया और फिर 2001 में NIST ने AES (Advanced Encryption Standard) को नया global standard बनाया। नीचे दिए गए comparison table से तीनों का अंतर साफ समझें:

Parameter DES Triple DES (3DES) AES
Full Form Data Encryption Standard Triple Data Encryption Standard Advanced Encryption Standard
Release Year 1977 1998 2001
Key Length 56 bits (effective) 112 bits या 168 bits 128, 192, या 256 bits
Block Size 64 bits 64 bits 128 bits
Cipher Structure Feistel Network Feistel Network (3 stages) Substitution-Permutation Network (SPN)
Rounds 16 rounds 48 rounds (16 × 3) 10, 12, या 14 rounds
Current Security Status Broken (Unsafe) Deprecated (Legacy only) Extremely Secure (Global Standard)
Execution Speed Moderate (Hardware-friendly) Very Slow (Software में बहुत धीमा) Very Fast (Hardware और Software दोनों में)

Exam में कैसे लिखें (5 Marks Answer)

यूनिवर्सिटी exam (BCA/MCA/B.Tech) में जब DES पर 5 marks का question आए, तो direct points में इस तरह answer लिखें:

  1. Definition: DES (Data Encryption Standard) एक symmetric key block cipher algorithm है जिसे 1977 में NBS/NIST ने standard घोषित किया था।
  2. Block & Key Size: यह 64-bit plaintext blocks पर काम करता है। Key size 64 bits होती है, जिसमें 8 parity bits छोड़कर effective key size 56 bits बचती है।
  3. Structure: यह 16 rounds वाले Feistel Cipher structure पर आधारित है।
  4. Core Operations: इसमें Initial Permutation (IP), 16 identical rounds, 32-bit swap और Final Permutation (FP / IP⁻¹) शामिल हैं।
  5. Round Function: हर round में 32-bit Right half को E-box से 48 bits बनाकर 48-bit round key से XOR करते हैं, फिर 8 S-boxes (48 bits to 32 bits) और P-box से गुजारते हैं।
  6. Decryption: Decryption में वही algorithm चलता है, केवल subkeys का क्रम उल्टा (K16 से K1) कर दिया जाता है।
  7. Limitation: 56-bit key space छोटा होने के कारण यह brute force attack से vulnerable है।
  8. Replacement: आधुनिक systems में DES की जगह AES (128/192/256 bits key) का इस्तेमाल किया जाता है।

Students की Common Mistakes (सावधानियाँ)

  • Key size को सिर्फ 64 bits लिखना: बहुत से छात्र exam में केवल "64 bits key" लिख देते हैं। हमेशा स्पष्ट करें कि 64 bits में से 8 bits केवल error check/parity के लिए होती हैं, वास्तविक effective key size 56 bits ही होती है।
  • S-box के bit mapping को भूल जाना: S-box में 6 bits से 4 bits कैसे बनती हैं, इसमें अक्सर छात्र confuse होते हैं। याद रखें: bit 1 और bit 6 मिलकर row चुनती हैं (0 से 3), और bits 2, 3, 4, 5 मिलकर column चुनती हैं (0 से 15)।
  • Decryption के लिए अलग algorithm समझना: कई छात्र सोचते हैं कि DES decryption का formula अलग होता है। Feistel network की खूबी ही यही है कि encryption और decryption का hardware/code 100% same रहता है, केवल keys का order reverse होता है।
  • DES और AES को Feistel network बताना: DES Feistel network पर आधारित है, लेकिन AES Substitution-Permutation Network (SPN) पर काम करता है। दोनों के structure को mix न करें।

Exam के लिए Important Questions

Short Questions (2–3 marks)

  1. DES का full form क्या है और इसकी effective key length कितनी होती है? (Full form: Data Encryption Standard, Effective key length: 56 bits)
  2. DES में 64-bit key होने के बावजूद 56-bit key क्यों मानी जाती है? (क्योंकि bits 8, 16, 24, 32, 40, 48, 56, 64 parity bits होती हैं जो encryption में भाग नहीं लेतीं)
  3. DES में S-box का मुख्य कार्य क्या है? (S-box non-linear substitution करता है और 48-bit input को 32-bit output में compress करता है)
  4. DES में कुल कितने rounds होते हैं और इसकी structure किस design पर आधारित है? (16 rounds, Feistel Cipher Network structure)
  5. DES algorithm अब insecure क्यों माना जाता है? (56-bit key space छोटा होने के कारण brute force attack से आसानी से crack हो जाता है)

Long Questions (5–10 marks)

  1. DES algorithm क्या है? इसके working principle, Initial Permutation और 16 rounds के Feistel structure को neat diagram के साथ detail में समझाइए।
  2. DES के Round Function (f) की internal working समझाइए। Expansion Permutation, S-box substitution और P-box permutation की भूमिका स्पष्ट कीजिए।
  3. DES में 64-bit master key से 16 round keys (subkeys) कैसे generate होती हैं? PC-1, Circular Left Shift और PC-2 के steps को समझाइए।
  4. DES और AES algorithms के बीच मुख्य अंतरों की तुलना कीजिए और बताइए कि NIST ने DES के स्थान पर AES को क्यों चुना।

FAQs

DES algorithm in cryptography क्या है?

Cryptography में DES एक symmetric block cipher algorithm है जो 64-bit data block को 56-bit key का इस्तेमाल करके 16 rounds में encrypt करता है। इसमें data को सुरक्षित रखने के लिए substitution और permutation techniques का उपयोग होता है।

DES full form in cryptography क्या होता है?

DES का full form Data Encryption Standard होता है। इसे 1970 के दशक में IBM और अमेरिकी मानक संस्था NIST (पूर्व में NBS) ने develop किया था।

DES और 3DES में क्या अंतर है?

DES में data केवल एक बार 56-bit key से 16 rounds में process होता है। 3DES (Triple DES) में security बढ़ाने के लिए DES algorithm को तीन बार (Encrypt-Decrypt-Encrypt) चलाया जाता है, जिसमें 112 या 168 bits की effective key इस्तेमाल होती है।

क्या modern banking या websites पर DES का इस्तेमाल होता है?

नहीं, modern banking system, website (SSL/TLS), या payment gateway में original DES का इस्तेमाल नहीं होता। सब जगह सुरक्षा के लिए AES (Advanced Encryption Standard) का इस्तेमाल किया जाता है क्योंकि DES को modern computers कुछ ही घंटों में crack कर सकते हैं।

अक्सर पूछे जाने वाले प्रश्न (FAQs)

Quick Answer: Cryptography में DES (Data Encryption Standard) एक symmetric-key block cipher algorithm है, जो 64-bit plaintext block को 56-bit secret key की मदद से 64-bit ciphertext में बदलता है।
Network Security & Cryptography | नेटवर्क सिक्यूरिटी नोट्स के पाठ्यक्रम में DES in Hindi | DES क्या है एक महत्वपूर्ण अध्याय है। यह मुख्य सिद्धांतों, परीक्षा प्रश्नों और सूत्रों को समझने के लिए अत्यधिक आवश्यक है।
हाँ, NotesMedia पर आपको DES in Hindi | DES क्या है के महत्वपूर्ण प्रश्नोत्तर, हल किए गए उदाहरण और नोट्स बिल्कुल मुफ्त मिलेंगे। अधिक अभ्यास के लिए आप हमारा ऐप भी डाउनलोड कर सकते हैं।
Advertisement

In this Chapter

DES in Hindi | DES क्या है
What is Network Security in Hindi
Model of Network & Cryptography in Hindi
MANET in Hindi | मोबाइल ऐड-हॉक नेटवर्क क्या है
Web Security in Hindi | वेब सिक्यूरिटी हिंदी में
Email Security in Hindi | ईमेल सुरक्षा हिंदी में
Phishing in Hindi | फिशिंग हिंदी में
SET(Secure Electronics Transactions) in Hindi | सिक्योर इलेक्ट्रॉनिक ट्रांजैक्शन हिंदी में
Cyber Ethics in Hindi | साइबर नैतिकता हिंदी में
Server Management in Hindi | सर्वर प्रबंधन हिंदी में
VPN in Hindi | VPN हिंदी में
Malware in Hindi | मालवेयर हिंदी में
DDOS in Hindi | डीडीओस हिंदी में
Botnet in Hindi | बोटनेट हिंदी में
Backdoor Attack in Hindi | बैकडोर अटैक हिंदी में
Hash Function in Hindi | हैश फंक्शन हिंदी में
IP Security in Hindi | आई.पी. सिक्योरिटी हिंदी में
IP Spoofing in Hindi | IP स्पूफिंग हिंदी में
Proxy Server in Hindi | प्रॉक्सी सर्वर हिंदी में
SSL in Hindi | SSL हिंदी में
Viruses in Hindi | वायरस हिंदी में
Spyware in Hindi | स्पाईवेयर हिंदी में
Flooding in Hindi | फ़्लडिंग हिंदी में
Hacking in Hindi | हैकिंग हिंदी में
Buffer Overflow in Hindi | बफ़र ओवरफ़्लो हिंदी में
Information Warfare in Hindi | सूचना युद्ध हिंदी में
L2TP in Hindi | L2TP क्या है
Brute-Force Attack in Hindi | ब्रूट-फोर्स अटैक हिंदी में
Active and Passive Attacks in Hindi | सक्रिय और निष्क्रिय हमले हिंदी में
Transposition Techniques in Hindi | ट्रांसपोजिशन तकनीक क्या है
Caesar Cipher in Hindi | कैसर साइफर क्या है
Avenues of Attack in Hindi | एवेन्यूज़ अटैक हिंदी में
SSH in Hindi | SSH क्या है?
Identity Theft in Hindi | पहचान की चोरी क्या है?
PGP & Hashing in Hindi | PGP और हैशिंग हिंदी में
Virus Scanner in Hindi | वायरस स्कैनर क्या है?
Virus dropper in Hindi | वायरस ड्रोपर क्या है?
Fog Computing in Hindi | फॉग कम्प्यूटिंग क्या है?
MDS & HTTPS in Hindi | MDS और HTTPS क्या है
DNS in Hindi | डोमेन नाम प्रणाली क्या है
Kerberos Protocol in Hindi | केर्बेरोस प्रोटोकॉल क्या है
Hellman Key Exchange in Hindi
Teardrop Attack in Hindi | टियरड्रॉप अटैक क्या है
Digital Signature in Hindi | डिजिटल सिग्नेचर क्या है
Kali Linux in Hindi | काली लिनक्स क्या है
Symmetric & Asymmetric in Hindi | सिमेट्रिक और असिमेट्रिक हिंदी में
IPv4 & IPv6 in Hindi |  IPv4 vs IPv6