What AES encryption is
AES encryption is a way of turning readable data into unreadable ciphertext using a secret key, so that only someone holding the same key can turn it back. AES stands for the Advanced Encryption Standard, and it is the most widely used symmetric cipher in the world.
The US National Institute of Standards and Technology (NIST) ran an open competition from 1997 to replace the ageing Data Encryption Standard (DES), whose 56-bit key had become short enough to break by brute force. The winner was Rijndael, designed by the Belgian cryptographers Joan Daemen and Vincent Rijmen, and NIST published it as FIPS 197 in 2001.
Because AES is public, heavily studied and free to use, it has become the default choice across computing. It is also fast, and most current processors have dedicated instructions for it, such as AES-NI on Intel and AMD and the cryptography extensions on Arm. That lets a computer encrypt a whole drive or a network link with little effect on performance.
How AES encryption works
AES is a block cipher. It splits data into 16-byte (128-bit) blocks, arranges each block as a 4 × 4 grid of bytes and passes it through repeated rounds of substitution and mixing. A key schedule expands the original key into a separate round key for each round. Each round uses four steps:
-
//
SubBytes. Each byte is swapped for another using a fixed lookup table, which removes any simple mathematical link between input and output.
-
//
ShiftRows. The rows of the grid are shifted by different amounts, spreading bytes across the columns.
-
//
MixColumns. Each column is mixed so that one input byte affects every byte in that column. The final round leaves this step out.
-
//
AddRoundKey. The block is combined with that round’s key using an XOR operation. This is the step that makes the result depend on the secret key.
AES-128 vs AES-192 vs AES-256
The number is the key length in bits. Longer keys use more rounds and give a far larger set of possible keys, but all three versions use the same 128-bit block size.
| Version | Key length | Rounds | Possible keys | Typically used for |
|---|---|---|---|---|
| AES-128 | 128 bits | 10 | About 3.4 × 10³⁸ | Web traffic, Wi-Fi, general disk encryption |
| AES-192 | 192 bits | 12 | About 6.3 × 10⁵⁷ | Less common, mostly where a policy asks for it |
| AES-256 | 256 bits | 14 | About 1.2 × 10⁷⁷ | Self-encrypting drives, VPNs, regulated and government data |
AES-128 is still considered secure for most uses. AES-256 costs slightly more processing time and gives a larger margin, which is why it is usually specified for long-lived data and by higher-assurance security policies.
How secure AES encryption is
No practical attack is known against the full AES algorithm. The best published attacks only shave a small amount off the effort of trying every key, which leaves the task far beyond any computer, present or foreseeable. Quantum computers would, in theory, reduce the effective strength of a key by about half, which is one reason long-term guidance tends to favour AES-256.
In practice, systems using AES fail in other ways. Weak passwords, keys stored next to the data they protect, reused nonces and side-channel leaks from poorly written implementations are all far more likely causes of a breach than the cipher itself. How the key is generated and stored matters as much as how long it is.
AES modes of operation
AES on its own encrypts a single block. A mode of operation defines how to handle longer data, and choosing the right one matters as much as the key length.
-
//
GCM. Encrypts and also detects tampering. It is the usual choice for TLS, VPNs and network links.
-
//
XTS. Designed for storage, where each sector is encrypted independently. BitLocker and LUKS commonly use it.
-
//
CTR. Turns AES into a stream cipher, which suits parallel processing. It provides no tamper detection on its own.
-
//
CBC. An older mode that chains each block to the one before. It is still common but needs care to use safely.
-
//
ECB. Encrypts each block separately, so identical blocks produce identical output and patterns show through. Avoid it for real data.
Where AES is used in industrial systems
Most people use AES many times a day without seeing it, in HTTPS, messaging apps and phone storage. In industrial and embedded systems, it matters most where equipment sits outside a locked server room and may be stolen, serviced by third parties or connected to shared networks.
-
//
Disk encryption. Software such as BitLocker and LUKS, or self-encrypting drives built to the TCG Opal specification, protects data if a vehicle or roadside computer is stolen.
-
//
Drive disposal. A self-encrypting drive can be sanitised quickly by destroying its key. Our guide to secure erase on an SSD covers the commands involved.
-
//
Remote connections. Industrial IoT gateways commonly use AES inside VPN tunnels and TLS sessions when sending plant data to the cloud or a control room.
-
//
Wired and wireless networks. WPA2 and WPA3 Wi-Fi use AES, as does MACsec on Ethernet links.
-
//
Industrial protocols. OPC UA offers AES-based security policies to protect data between machines and servers.
Quick answers on AES encryption
AES encryption: common questions
Is AES symmetric or asymmetric?
Symmetric. The same secret key encrypts and decrypts the data. Asymmetric algorithms such as RSA use a public and private key pair instead.
Has AES ever been cracked?
Not in any practical sense. Real-world breaches usually come from stolen keys, weak passwords or flawed implementations, not from breaking the algorithm.
Is AES-256 better than AES-128?
It has a larger security margin, but both are considered secure. AES-256 runs slightly slower. It is the usual choice for long-lived data or where a security policy requires it.
What is the difference between AES and RSA?
AES encrypts data, while RSA usually protects keys and verifies identity. AES is much faster, so secure connections typically use RSA or elliptic curve methods to set up an AES key, then AES for the data.
Is AES better than DES?
Yes. DES has a 56-bit key that can be broken by brute force, and NIST has withdrawn it as a standard. AES has much longer keys and a larger block size.
We supply and image industrial computers as standard, so the TPM, Secure Boot and storage choices that support encryption can be specified from the start. Send us your security requirements and we will shortlist a system to match.