# DES / Triple DES

**Comment:**

Encryption from text to base64. Decryption from base64 to text. Key - text.

**Description:**

DES / Triple DES online encryption. DES (Data Encryption Standard) is a symmetric encryption algorithm in which one key is used for both encryption,
so it is for decrypting data. DES was developed by IBM and approved by the US government in 1977 as an official standard (FIPS 46-3).

To increase the cryptographic strength of DES, several options appear: double DES (2DES), triple DES (3DES), DESX, G-DES. The 2DES and 3DES methods are based on DES, but they increase the key length (2DES — 112 bits, 3DES — 168 bits) and therefore increase the cryptographic strength.

The block size for DES is 64 bits. The algorithm is based on a Feistel network with 16 cycles (rounds) and a key having a length of 56 bits. The algorithm uses a combination of nonlinear (S-blocks) and linear (permutations of E, IP, IP-1) transformations.

DES was the US national standard in 1977-1980, but currently DES is used (with a 56-bit length key) only for legacy systems, most often used its more crypto-resistant form (3DES, DESX). 3DES is a simple effective replacement for DES, and it is now considered as a standard. In the near future DES and Triple DES will be replaced by the AES algorithm (Advanced Encryption Standard - Advanced Encryption Standard). The DES algorithm is widely used to protect financial information: Thus, the THALES (Racal) HSM RG7000 module fully supports TripleDES operations for issuing and processing VISA, EuroPay, etc. credit cards. THALES (Racal) DataDryptor 2000 channel encoders use TripleDES for transparent encryption of information flows. The DES algorithm is also used in many other THALES-eSecurity devices and solutions.

To increase the cryptographic strength of DES, several options appear: double DES (2DES), triple DES (3DES), DESX, G-DES. The 2DES and 3DES methods are based on DES, but they increase the key length (2DES — 112 bits, 3DES — 168 bits) and therefore increase the cryptographic strength.

The block size for DES is 64 bits. The algorithm is based on a Feistel network with 16 cycles (rounds) and a key having a length of 56 bits. The algorithm uses a combination of nonlinear (S-blocks) and linear (permutations of E, IP, IP-1) transformations.

DES was the US national standard in 1977-1980, but currently DES is used (with a 56-bit length key) only for legacy systems, most often used its more crypto-resistant form (3DES, DESX). 3DES is a simple effective replacement for DES, and it is now considered as a standard. In the near future DES and Triple DES will be replaced by the AES algorithm (Advanced Encryption Standard - Advanced Encryption Standard). The DES algorithm is widely used to protect financial information: Thus, the THALES (Racal) HSM RG7000 module fully supports TripleDES operations for issuing and processing VISA, EuroPay, etc. credit cards. THALES (Racal) DataDryptor 2000 channel encoders use TripleDES for transparent encryption of information flows. The DES algorithm is also used in many other THALES-eSecurity devices and solutions.

**Resources:**