Cryptography - AES vs DES ciphers



Symmetric-key block ciphers, such as DES and AES, are used in encryption to encode and decode electronic data with a single secret key. To be used in the decryption process, the key must be sent between the groups communicating using symmetric encryption.

Go over this chapter to find out the features of AES and DES ciphers and how they differ from each other −

What is AES Cipher?

Founded by Vincent Rijmen and Joan Daemen in 2001, the Symmetric Key Block Cipher (AES), also known as Advanced Encryption Standard, is widely used across the globe. It encrypts confidential data on a variety of devices including smartphones, laptops, tablets among other gadgets. Similarly, the transmission of data through the internet especially wirelessly largely depends on AES.

  • AES (Advanced Encryption Standard) uses a 128-bit plaintext and a 128-bit secret key to create a 128-bit block, which then produces a 16-byte (128-bit) ciphertext.
  • The key length for AES can be 128 bits, 192 bits, or 256 bits, with corresponding rounds of encryption: 10 rounds for 128-bit keys, 12 rounds for 192-bit keys, and 14 rounds for 256-bit keys.
  • AES is considered more secure than DES encryption and is widely accepted as the international standard for encryption.

The Advanced Encryption Standard encryption mechanism uses repetitive substitution and permutation operations. The 16 bytes of data are organised in a matrix with four columns and four rows. On this matrix, AES executes rounds of substitution-permutation.

Each of these rounds use a different cipher key derived from the initial AES key. The number of rounds of operations is determined by the size of the key in the following manner −

  • For a 128-bit cypher key, ten rounds
  • For a 192-bit cypher key, twelve rounds
  • For a 256-bit cypher key, 14 rounds

What is DES Cipher?

The Data Encryption Standard, often known as DES, is a symmetric key block cypher developed by IBM in 1977.

  • Plaintext is divided into two halves in DES encryption, and then DES uses a 64-bit plaintext and a 56-bit key to generate a 64-bit ciphertext, which is an encrypted representation of the data.
  • The key length used for encryption in DES is 56 bits, although the block size is 64 bits (the remaining 8 bits are check bits only; they are not used by the encryption algorithm). DES entails 16 rounds of identical procedures, regardless of key length.
  • Because the amount of operations in DES is fixed and no permutation combinations are permitted, it is easier to break the encryption, making it less secure than AES.

DES is a symmetric key algorithm used to encrypt digital data. Its short key length of 56 bits makes it too weak to secure most current applications that is based on encryption.

Difference between AES and DES ciphers

The table below highlights the main differences between AES and DES ciphers −

Key AES DES
Definition AES stands for Advanced Encryption Standard. DES stands for Data Encryption Standard.
Key Length Key length varies from 128 bits, 192 bits to 256 bits. Key length is of 56 bits.
Rounds of Operations Rounds per key length:
128 bits - 10
192 bits - 12
256 bits - 14
16 rounds of identical operations.
Network AES structure is based on substitution-permutation network. DES structure is based on Feistal network.
Security AES is de-facto standard and is more secure than DES. DES is weak, however, 3DES (Triple DES) is more secure than DES.
Rounds The operation rounds involved in AES encryption are Byte Substitution, Shift Row, Mix Column, and Key Addition. Expansion, XOR operation with round key, Substitution, and Permutation are the rounds used in DES encryption.
Size AES can encrypt 128 bits of plain text. DES can encrypt 64 bits of plain text.
Derived from AES is derived from Square cipher. DES is derived from Lucifer cipher.
Designed By AES was designed by Vincent Rijmen and Joan Daemen. DES was designed by IBM.
Known attacks No known attacks. Brute-force, Linear crypt-analysis, and Differential crypt-analysis.
Encryption AES can encrypt plain text up to 128 bits. DES can encrypt 64 bits of plain text.

Summary

To conclude, both AES and DES are symmetric key block ciphers, however AES cipher is the de-facto standard of encryption and it is more secure than DES cipher.

Advertisements