From f8c46af516482429240881b01c79bc65e0391776 Mon Sep 17 00:00:00 2001 From: JSM2512 <49087609+JSM2512@users.noreply.github.com> Date: Thu, 1 Oct 2020 01:39:42 +0530 Subject: [PATCH] Update README.md --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 6341c51..1f7f349 100644 --- a/README.md +++ b/README.md @@ -136,3 +136,28 @@ namespace test ``` Note: You May Also Use The SymmetricHash.CreateSymmetricHash() Method To Create Symmetric Hashes. + + +Before using 3TDES, user first generate and distribute a 3TDES key K, which consists of three different DES keys K1, K2 and K3. This means that the actual 3TDES key has length 3×56 = 168 bits. The encryption scheme is illustrated as follows − + +############ Triple DES Algorithm + +Encryption Scheme +The encryption-decryption process is as follows − + +Encrypt the plaintext blocks using single DES with key K1. + +Now decrypt the output of step 1 using single DES with key K2. + +Finally, encrypt the output of step 2 using single DES with key K3. + +The output of step 3 is the ciphertext. + +Decryption of a ciphertext is a reverse process. User first decrypt using K3, then encrypt with K2, and finally decrypt with K1. + +Due to this design of Triple DES as an encrypt–decrypt–encrypt process, it is possible to use a 3TDES (hardware) implementation for single DES by setting K1, K2, and K3 to be the same value. This provides backwards compatibility with DES. + +Second variant of Triple DES (2TDES) is identical to 3TDES except that K3is replaced by K1. In other words, user encrypt plaintext blocks with key K1, then decrypt with key K2, and finally encrypt with K1 again. Therefore, 2TDES has a key length of 112 bits. + +Triple DES systems are significantly more secure than single DES, but these are clearly a much slower process than encryption using single DES. +