LearnViz CompSci
Home / Learn / Security & Cryptography / AES

Beginner Topic 14 of 51 Security & Cryptography

AES

Widely used block cipher standard.

How it works

The Advanced Encryption Standard is a symmetric block cipher chosen by NIST in 2001, operating on 128-bit blocks with key sizes of 128, 192 or 256 bits. It runs 10, 12 or 14 rounds of substitution, row shifting, column mixing and key addition on a four by four byte state, designed from the Rijndael cipher. Modern CPUs include AES instructions, making it very fast in hardware and software.

Step-by-step walkthrough

  1. AES encrypts 128-bit blocks with a 128, 192 or 256-bit key.
  2. The state is first mixed with the key.
  3. It then runs 10 to 14 rounds of substitution, shifting and mixing.
  4. Each round also uses a round key derived from the key.
  5. The final block is the ciphertext, and hardware makes it very fast.

Where it is used

It protects HTTPS traffic, Wi-Fi with WPA2 and WPA3, full-disk encryption such as BitLocker and FileVault, messaging apps, database encryption and government data. AES-GCM is a popular authenticated mode.

Common pitfall

AES is secure, but misuse is not: ECB mode reveals patterns, nonce reuse in GCM is catastrophic, and padding oracles break CBC mode without authentication. Key handling matters more than key size. Implementations without hardware support can leak timing information through table lookups. Use well-reviewed libraries, not hand-written code.

Where it fits in the course

AES is topic 14 of 51 in Security & Cryptography, rated Beginner. It follows Symmetric Encryption. The next topic is Asymmetric Encryption.

Practice and explore

How to study this topic

  1. Read the explanation above and restate the definition in your own words.
  2. Open the interactive lesson and answer its mini quiz.
  3. Read the common pitfall, then write a short example that avoids it.
  4. Check your understanding in the Security & Cryptography quiz, and revisit the topic if you miss a question.

Frequently asked questions

What is AES?
Widely used block cipher standard. It belongs to Security & Cryptography and is a beginner-level topic.
Where do people use AES?
It protects HTTPS traffic, Wi-Fi with WPA2 and WPA3, full-disk encryption such as BitLocker and FileVault, messaging apps, database encryption and government data.
What is the most common mistake with AES?
AES is secure, but misuse is not: ECB mode reveals patterns, nonce reuse in GCM is catastrophic, and padding oracles break CBC mode without authentication.
What should I learn before this topic?
Start with Symmetric Encryption, the topic just before it in Security & Cryptography.
How can I practice it?
Answer the mini quiz in the interactive lesson, then take the Security & Cryptography quiz.
Is AES hard to learn?
It is a Beginner topic, so it works as an entry point. If the terms are new, read the explanation twice and try the visualizer before the quiz.
How long does it take to learn AES?
Most learners can read the explanation and finish the interactive lesson in under an hour. Fluency comes from applying the idea, so plan a few short practice sessions with the quiz.
Which topics are related to AES?
Symmetric Encryption, Asymmetric Encryption, Encryption Basics are closely connected. The full list is in the related topics section of this page.
What should I study after AES?
Continue with Asymmetric Encryption, the next topic in Security & Cryptography.

Related topics