3DES - Triple Data Encryption Standard ======================================== .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **What is 3DES?** 3DES stands for Triple Data Encryption Standard. It’s an enhancement of the original DES algorithm that applies the DES cipher three times to each data block. It was developed to overcome the security limitations of standard DES. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Why is 3DES useful?** * 3DES was introduced as a temporary upgrade to DES until stronger standards (like AES) were developed. * It was useful because: * Provided improved security over single DES * Maintained backward compatibility * Was widely used in financial and government sectors * Played a key transitional role despite being slower and now outdated .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **How it works** * Key generation – Uses two or three 56-bit keys (totaling 112 or 168 bits) * Encryption – Encrypts with Key1 → Decrypts with Key2 → Encrypts with Key3 (EDE sequence) * Transmission/Storage – Encrypted (ciphertext) blocks are transmitted or saved * Decryption – Reverses the process (Decrypt → Encrypt → Decrypt) .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Where is 3DES used?** * Still seen in: * Banking – Encrypting ATM PINs and transactions * Legacy systems – Where migration to AES hasn’t occurred * Secure file transfers – Older SFTP and SSH tools * VPNs and IPsec – Previously used in encrypted sessions * Smart cards and tokens – For secure storage and authentication .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which OSI layer does this protocol belong to?** * 3DES operates at the Presentation Layer (Layer 6) * Manages encryption and decryption before data reaches the application * Ensures data confidentiality by transforming readable data into ciphertext .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Learnings in this section <3DES_step1>` * :ref:`Terminology <3DES_step2>` * :ref:`Version Info <3DES_step3>` * :ref:`3DES Version&RFC Details <3DES_step5>` * :ref:`3DES Basic Setup on Ubuntu using IPv4 <3DES_step20>` * :ref:`3DES Basic Setup on Ubuntu using IPv6 <3DES_step21>` * :ref:`3DES Protocol Packet Details <3DES_step6>` * :ref:`3DES Usecases <3DES_step7>` * :ref:`3DES Basic Features <3DES_step8>` * :ref:`3DES Feature : Symmetric Key Cipher <3DES_step9>` * :ref:`3DES Feature : Block Cipher <3DES_step10>` * :ref:`3DES Feature : Keying Options <3DES_step11>` * :ref:`3DES Feature : Triple Encryption <3DES_step12>` * :ref:`3DES Feature : Backward Compatibility <3DES_step13>` * :ref:`3DES Feature : Feistel Structure <3DES_step14>` * :ref:`3DES Feature : Stronger than DES <3DES_step15>` * :ref:`3DES Feature : Slower than AES <3DES_step16>` * :ref:`3DES Feature : Systems <3DES_step17>` * :ref:`3DES Feature : Being Phased Out <3DES_step18>` * :ref:`Reference links <3DES_step19>` .. _3DES_step1: .. tab-set:: .. tab-item:: Learnings in this section * In this section, you are going to learn .. _3DES_step2: .. tab-set:: .. tab-item:: Terminology * Terminology .. _3DES_step3: .. tab-set:: .. tab-item:: Version Info * Version Info .. _3DES_step5: .. tab-set:: .. tab-item:: 3DES Version&RFC Details .. csv-table:: :file: ./3DES/3des_rfc_details.csv :widths: 10,10,10,30 :header-rows: 1 .. _3DES_step20: .. tab-set:: .. tab-item:: 3DES Basic Setup on Ubuntu using IPv4 * Setup .. _3DES_step21: .. tab-set:: .. tab-item:: DES Basic Setup on Ubuntu using IPv6 * Setup .. _3DES_step6: .. tab-set:: .. tab-item:: 3DES Protocol Packet Details **3DES Encryption Packet** .. csv-table:: :file: ./3DES/3des_packet1_details.csv :widths: 10,20,30,10 :header-rows: 1 **3DES Decryption Packet** .. csv-table:: :file: ./3DES/3des_packet2_details.csv :widths: 10,20,30,10 :header-rows: 1 .. _3DES_step7: .. tab-set:: .. tab-item:: 3DES Usecases .. csv-table:: :file: ./3DES/3des_usecases.csv :widths: 10,20,30 :header-rows: 1 .. _3DES_step8: .. tab-set:: .. tab-item:: 3DES Basic Features .. csv-table:: :file: ./3DES/3des_features.csv :widths: 10,10,30 :header-rows: 1 .. _3DES_step9: .. tab-set:: .. tab-item:: 3DES Feature : Symmetric Key Cipher **Symmetric Key Cipher - Testcases** .. csv-table:: :file: ./3DES/3des_feature1_test_cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _3DES_step10: .. tab-set:: .. tab-item:: 3DES Feature : Block Cipher **Block Cipher - Testcases** .. csv-table:: :file: ./3DES/3des_feature2_test_cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _3DES_step11: .. tab-set:: .. tab-item:: 3DES Feature : Keying Options **Keying Options - Testcases** .. csv-table:: :file: ./3DES/3des_feature3_test_cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _3DES_step12: .. tab-set:: .. tab-item:: 3DES Feature : Triple Encryption **Triple Encryption - Testcases** .. csv-table:: :file: ./3DES/3des_feature4_test_cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _3DES_step13: .. tab-set:: .. tab-item:: 3DES Feature : Backward Compatibility **Backward Compatibility - Testcases** .. csv-table:: :file: ./3DES/3des_feature5_test_cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _3DES_step14: .. tab-set:: .. tab-item:: 3DES Feature : Feistel Structure ** Feistel Structure - Testcases** .. csv-table:: :file: ./3DES/3des_feature6_test_cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _3DES_step15: .. tab-set:: .. tab-item:: 3DES Feature : Stronger than DES **Stronger than DES - Testcases** .. csv-table:: :file: ./3DES/3des_feature7_test_cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _3DES_step16: .. tab-set:: .. tab-item:: 3DES Feature : Slower than AES **Slower than AES - Testcases** .. csv-table:: :file: ./3DES/3des_feature8_test_cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _3DES_step17: .. tab-set:: .. tab-item:: 3DES Feature : Systems **Systems - Testcases** .. csv-table:: :file: ./3DES/3des_feature9_test_cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _3DES_step18: .. tab-set:: .. tab-item:: 3DES Feature : Being Phased Out **Being Phased Out - Testcases** .. csv-table:: :file: ./3DES/3des_feature10_test_cases.csv :widths: 10,10,30,20 :header-rows: 1 .. _3DEs_step19: .. tab-set:: .. tab-item:: Reference links * Reference links