{"id":20096,"date":"2022-11-26T13:29:18","date_gmt":"2022-11-26T13:29:18","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=10264"},"modified":"2022-11-26T13:29:18","modified_gmt":"2022-11-26T13:29:18","slug":"triple-des","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/11\/26\/triple-des\/","title":{"rendered":"Triple DES"},"content":{"rendered":"\n<p>The speed of exhaustive key searches against DES after 1990 began to cause discomfort amongst users of DES. However, users did not want to replace DES as it takes an enormous amount of time and money to change encryption algorithms that are widely adopted and embedded in large security architectures.<\/p>\n\n\n\n<p>The pragmatic approach was not to abandon the DES completely, but to change the manner in which DES is used. This led to the modified schemes of Triple DES (sometimes known as 3DES).<\/p>\n\n\n\n<p>Incidentally, there are two variants of Triple DES known as 3-key Triple DES (3TDES) and 2-key Triple DES (2TDES).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3-KEY Triple DES<\/h2>\n\n\n\n<p>Before using 3TDES, user first generate and distribute a 3TDES key K, which consists of three different DES keys K<sub>1<\/sub>, K<sub>2<\/sub>&nbsp;and K<sub>3<\/sub>. This means that the actual 3TDES key has length 3\u00d756 = 168 bits. The encryption scheme is illustrated as follows \u2212<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.tutorialspoint.com\/cryptography\/images\/encryption_scheme.jpg\" alt=\"Encryption Scheme\"\/><\/figure>\n\n\n\n<p>The encryption-decryption process is as follows \u2212<\/p>\n\n\n\n<ul>\n<li>Encrypt the plaintext blocks using single DES with key K<sub>1<\/sub>.<\/li>\n\n\n\n<li>Now decrypt the output of step 1 using single DES with key K<sub>2<\/sub>.<\/li>\n\n\n\n<li>Finally, encrypt the output of step 2 using single DES with key K<sub>3<\/sub>.<\/li>\n\n\n\n<li>The output of step 3 is the ciphertext.<\/li>\n\n\n\n<li>Decryption of a ciphertext is a reverse process. User first decrypt using K<sub>3,<\/sub>&nbsp;then encrypt with K<sub>2,<\/sub>&nbsp;and finally decrypt with K<sub>1<\/sub>.<\/li>\n<\/ul>\n\n\n\n<p>Due to this design of Triple DES as an encrypt\u2013decrypt\u2013encrypt process, it is possible to use a 3TDES (hardware) implementation for single DES by setting K<sub>1,<\/sub>&nbsp;K<sub>2,<\/sub>&nbsp;and K<sub>3<\/sub>&nbsp;to be the same value. This provides backwards compatibility with DES.<\/p>\n\n\n\n<p>Second variant of Triple DES (2TDES) is identical to 3TDES except that K<sub>3<\/sub>is replaced by K<sub>1<\/sub>. In other words, user encrypt plaintext blocks with key K<sub>1,<\/sub>&nbsp;then decrypt with key K<sub>2,<\/sub>&nbsp;and finally encrypt with K<sub>1<\/sub>&nbsp;again. Therefore, 2TDES has a key length of 112 bits.<\/p>\n\n\n\n<p>Triple DES systems are significantly more secure than single DES, but these are clearly a much slower process than encryption using single DES.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.tutorialspoint.com\/cryptography\/data_encryption_standard.htm\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The speed of exhaustive key searches against DES after 1990 began to cause discomfort amongst users of DES. However, users did not want to replace DES as it takes an enormous amount of time and money to change encryption algorithms that are widely adopted and embedded in large security architectures. The pragmatic approach was not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[314],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/20096"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=20096"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/20096\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=20096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=20096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=20096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}