The AES algorithm is widely used to encrypt data of any sort.
It has been battle-tested for many decades and is still recommended as one of the most secure algorithms.
In this article, we will see how AES encryption works and how the algorithm may be implemented by you, too!
The Cipher
There are two fundamental properties to this cipher, namely:
- Diffusion which is about hiding the statistical relationship between the ciphertext and the plaintext.
- If even a single bit is changed in the plaintext, the cipher should change completely.
- Confusion which is about complicating the relationship between the key and the ciphertext with the aim of making cryptanalysis more challenging.
AES encryption consists of 4 “simple” steps that are repeated for several rounds.