Questions tagged [3des]

A block cypher encryption algorithm built from applying three iterations of the original DES algorithm.

3DES, also known as Triple-DES, uses the standard DES algorithm three times. To encrypt, the first operation invokes DES in encrypt mode, the second uses DES in decryption mode, and the last operation uses encrypt mode again (also known as EDE mode). Decryption is performed in DED mode. As it is a reuse of DES, it shares similar attributes; it is still a 64-bit block cypher, each operation still uses initial and final permutation steps, and it still is based on the underlying Feistel network design.

DES was originally specified as a hardware device, with software implementations not being certified for use to protect secrets. Once the original DES key size of 56 bits was recognized as too cryptographically weak to continue to be used safely, cryptographers needed a safe algorithm while they awaited a new FIPS standard for encryption. Instead of taking the risk on an unproven algorithm, DES was easily reused simply by chaining three encoders together, connecting the output of each to the input of the next.

Keying options for 3DES include three independent keys; two independent keys where the key for the first and third encryptions are identical; and three identical keys. The three identical key system is backwards compatible with ordinary DES as the first and second encryptions cancel each other out, and as a result is not secure.

3DES is still considered secure, but not necessarily efficient when compared to modern algorithms such as AES.

3DES remains in common use today, particularly in the financial industry.

127 questions
46
votes
3 answers

Is Triple DES still considered safe to use?

What it says on the tin. Is it still used in things like TLS?
Melab
  • 4,178
  • 4
  • 24
  • 49
41
votes
2 answers

Why do we use encrypt-decrypt-encrypt (EDE) in 3DES, rather than encrypting three times?

I'm wondering why we use encrypt-decrypt-encrypt (EDE) sequence in 3DES (also known as DES-EDE, TDES or TDEA) with three keys instead of three times encryption (EEE) with three different keys?
alaamub
  • 583
  • 1
  • 5
  • 6
21
votes
1 answer

Why is triple-DES using three different keys vulnerable to a meet-in-the-middle-attack?

Among other sources, this Wikipedia entry states that triple-DES using three separate keys $(k_1, k_2, k_3)$ is vulnerable to meet-in-the-middle-attacks, while triple-DES using only two keys $(k_1, k_2, k_1)$ is not. Why is this attack possible if…
malexmave
  • 1,461
  • 2
  • 14
  • 26
17
votes
1 answer

Why would anyone choose 3DES over AES in software?

I'm well aware of what NIST and PCI say about the usage of 3DES and its deprecation/disallowance and I also know that AES is the actual recommended standard for software and hardware encryptions. I'm seeing many companies still choosing 3DES when…
franpen
  • 273
  • 3
  • 5
12
votes
1 answer

What is U2FsdGVkX1?

Using CryptoJS 3.1 I noticed that using 3Des, the encrypted message always start with U2FsdGVkX1 Why is the first part of the encryption always the same? What information does this hold and how does that information become U2FsdGVkX1?
Thomas
  • 1,184
  • 5
  • 16
  • 33
11
votes
4 answers

Can I find the encryption key if I know the plain text and the encrypted text (DES and AES)?

If I have the plain text and its output after encryption with a key K1, is it algorithmically feasible to find K1? I am specifically interested in the cases of DES and AES encryption algorithms.
Joezer
  • 213
  • 1
  • 2
  • 6
9
votes
1 answer

How can I attack a Triple-Block cipher with 2 keys (like 3DES) with a cost of ≤ 2⁵⁶

I am trying to solve something and I have but I have no idea anymore. Maybe anyone of you has an idea/solution/hint. Given is a block cipher $F$ with key length $n$. It looks like this: $$c = ENC_{k1}(DEC_{k2}(ENC_{k1}(m)))$$ with key length $2n$. I…
Donut
  • 395
  • 3
  • 14
9
votes
1 answer

Why should CAST5 and 3DES not be used for encrypting files over 4GB?

On https://www.gnupg.org/faq/gnupg-faq.html#define_cast, it says that Like 3DES, its 64-bit block size means it should not be used to encrypt files larger than 4Gb in size… How and why does the block size affect the security of the cipher?
Michael
  • 93
  • 3
8
votes
1 answer

Is there a security proof for the Triple-DES construction in the ideal cipher model?

Suppose one has an ideal block cipher $E \: : \: \{0,\hspace{-0.04 in}1\hspace{-0.03 in}\}^k \times \{0,\hspace{-0.04 in}1\hspace{-0.03 in}\}^w \: \to \: \{0,\hspace{-0.04 in}1\hspace{-0.03 in}\}^w \;\;\;$ and $\;\;\; D \: : \: \{0,\hspace{-0.04…
user991
8
votes
2 answers

Is it possible to perform a meet-in-the-middle within a block cipher?

Standard meet-in-the-middle explanations show that you can perform a meet-in-the-middle attack on a repeated block cipher such as double-DES (performing DES twice in a row). However, block ciphers themselves commonly consist of a number of rounds…
Maarten Bodewes
  • 96,351
  • 14
  • 169
  • 323
8
votes
3 answers

What is DES-EDE3-CBC?

I came across DES-EDE3-CBC and a quick search didn't yield a clear explanation of what it is. Clearly, DES is the Data Encryption Standard and CBC is the Cipher Block Chaining mode. EDE is probably Encrypt-Decrypt-Encrypt and maybe the 3 means that…
Erwin
  • 263
  • 3
  • 6
7
votes
2 answers

What does it mean if second half of 8-char string encrypted in 3DES is always identical?

In the recent Adobe passwords leak, presumably encrypted in 3DES ECB, second half of all 8-character passwords is identical: ioxG6CatHBw== Source: http://pastebin.com/iDTFARwq (guesses based on obvious password hints) L8qbAD3jl3jioxG6CatHBw==…
Adam
  • 81
  • 4
6
votes
3 answers

Calculating 3DES Key Check Value (KCV)

I am trying to verify a Triple DES Key Component generated by PC Crypto. The key portion is: E6F1081FEA4C402CC192B65DE367EC3E and the KCV value that should be returned is: 212CF915 In theory, it should be calculated as: encryption of binary 0's…
neif
  • 181
  • 1
  • 1
  • 9
6
votes
1 answer

Has a Two Key TDES encryption ever been successfully attacked?

Is there any known instance of a Two Key TDES ever being successfully attacked (in real life), when the key is used to encrypt less than $2^{20}$ words?
user11123
  • 61
  • 1
5
votes
2 answers

What is the keyspace of 2-key 3DES?

I am assuming that 2-key 3DES is equivalent to 2DES. I know the key size is 2x56 = 112 bits. Is this key size the same as the keyspace? e.g. Would the keyspace be 112 bits ($2^{112}$)?
countduckula
  • 61
  • 2
  • 4
1
2 3
8 9