ADVERTISEMENT

What is AES encryption and how does it work?

What is AES?
Rūta Rimkienė
Dec 11, 2020 Updated: 29 August 2022 9 min read

What is AES (Advanced Encryption Standard) Encryption?

  • 128-bit key length: 3.4 x 1038
  • 192-bit key length: 6.2 x 1057
  • 256-bit key length: 1.1 x 1077

The advantages of AES

Why do we use the AES algorithm?

Where is the AES algorithm used?

Examples of AES usage

  • VPNs (Virtual Private Networks). As the job of a VPN is to securely connect you to another server online, only the best methods of encryption can be considered so that your data wouldn’t leak. The VPNs that use the advanced encryption standard with 256-bit keys include NordVPN, Surfshark, and ExpressVPN.
  • Wi-Fi. That’s right - wireless networks also use AES encryption (usually, together with WPA2). This is not the only type of encryption Wi-Fi networks can use, however, most of the other encryption methods are far less safe.
  • Mobile applications. Many popular apps (like Snapchat and Facebook Messenger) use AES encryption in order to safely send info like photos and messages.
  • Archive and compression tools. All major file compression programs use AES to prevent data from leaking. These tools include 7z, WinZip, and RAR.
  • OS system components. Some operating system components (like file systems) use the advanced encryption standard for an extra layer of safety.
  • Programming language libraries. The libraries of such coding languages like Java, Python, and C++ implement AES encryption.
  • Password managers. These are the programs that carry a lot of sensitive information. That’s why password managers like LastPass and Dashlane don’t skip the important step of AES implementation.

How does AES encryption work?

1. Dividing data into blocks

AES encryption blocks

2. Key expansion

AES before key expansion
AES encryption after key expansion

3. Adding round key

AES key addition
AES key added

4. Byte substitution

ADVERTISEMENT
AES encryption byte substitute

5. Shifting rows

AES encryption shifting rows

6. Mixing columns

AES encryption mix columns

7. Adding round key

AES encryption add round key

8. Rinse and repeat

  • 128-bit key: 9 rounds
  • 192-bit key: 11 rounds
  • 256-bit key: 13 rounds
  • 128-bit key: 10 rounds
  • 192-bit key: 12 rounds
  • 256-bit key: 14 rounds

AES decryption

Does AES encryption have any security issues?

Side-channel attacks

Known-key distinguishing attacks

Key-recovery attacks

Conclusion

FAQ

ADVERTISEMENT