AES-256 encryption
Also called: AES-256, AES 256-bit encryption, 256-bit AES, Advanced Encryption Standard 256
Definition. AES-256 is the Advanced Encryption Standard (NIST FIPS 197) used with a 256-bit key: a symmetric block cipher that encrypts 128-bit blocks through 14 rounds, with 2^256 possible keys.
Stanislav Vovchyk · Updated Nov 7, 2026 · 23 tools have it
In short
- AES-256 is unbroken: the best single-key attack (2011) costs 2^254.4 operations, barely below brute force.
- NIST expects little quantum advantage against AES. The quantum risk is RSA/ECC key exchange.
- The mode matters as much as the key: GCM is authenticated, ECB leaks patterns, and nonce reuse breaks GCM.
- WireGuard uses ChaCha20-Poly1305, not AES, and TLS 1.3 makes AES-128-GCM mandatory.
VPN tunnels, HTTPS connections, full-disk encryption and messengers all use AES to encrypt their bulk data. "AES-256" is the encryption label VPN providers print most often, and on its own it tells you less than it seems to.
What AES-256 encryption is
AES-256 is the Advanced Encryption Standard, defined in NIST FIPS 197, used with a 256-bit key. It is a symmetric block cipher, originally named Rijndael, that encrypts data in fixed 128-bit blocks through 14 rounds.
The standard defines one algorithm with three key lengths: AES-128, AES-192 and AES-256. The block size never changes. Only the key length and the number of rounds differ: 10, 12 or 14.
A 256-bit key has 2^256 possible values, about 1.16 × 10^77. Trying every key is not physically feasible, so real attacks go after something else: the mode of operation, the key exchange, the implementation or the device holding the key.
AES is symmetric, meaning both sides hold the same key. RSA and elliptic-curve key exchange are asymmetric, and they work alongside AES rather than replacing it. SHA-256 is a different thing again: a one-way hash with no key and no way to decrypt. AES-256 and SHA-256 only share the number.
How AES-256 works, step by step
- Key exchange. The client (VPN app, browser, messenger) and the server run an asymmetric handshake such as ECDH, Curve25519 or RSA. This lets them agree on a shared secret without sending it in the clear.
- Key derivation. A key derivation function such as HKDF turns that secret into a 256-bit session key.
- Key schedule. AES expands the key into 15 round keys: one for the initial key addition and one for each of the 14 rounds.
- Blocks and nonce. The plaintext is split into 128-bit blocks. The mode of operation adds a unique nonce or IV (initialisation vector). GCM runs AES in counter mode: it encrypts counter blocks and combines the output with the data.
- Rounds. Each block, or each counter block in GCM, passes through 14 rounds of SubBytes, ShiftRows, MixColumns and AddRoundKey. The last round skips MixColumns.
- Authentication. GCM computes a 128-bit authentication tag over the ciphertext and the unencrypted header.
- Transmission. The ciphertext, nonce and tag go through the tunnel or onto the disk.
- Decryption. The receiver holds the same session key. It checks the tag, rejects anything that was tampered with, then runs the inverse rounds to recover the plaintext.
- Rekeying. The session key is renegotiated from time to time. With forward secrecy, a key stolen later cannot decrypt traffic recorded earlier.
The handshake supplies the key. AES-256-GCM encrypts the data, tags it and checks the tag.
Modes of operation
GCM, CBC, XTS and ECB are modes of operation, not separate ciphers. A mode decides how AES is applied to data longer than one block.
- GCM (NIST SP 800-38D, November 2007) is authenticated encryption with associated data (AEAD). It encrypts and detects tampering in one step, and it is the mode TLS and modern VPNs mostly use.
- CBC gives no integrity protection on its own, so it needs a separate MAC. Signal's Double Ratchet specification recommends AES-256 in CBC mode with PKCS#7 padding, authenticated with HMAC.
- XTS is built for disk sectors. Apple FileVault encrypts full volumes with AES-XTS.
- ECB turns identical blocks into identical ciphertext, so patterns leak through whatever the key length. It is insecure for most data.
AES-NI hardware
Intel's AES-NI adds six CPU instructions: AESENC, AESENCLAST, AESDEC, AESDECLAST, AESKEYGENASSIST and AESIMC. Each AESENC performs one full AES round. Intel says this makes AES 3 to 10 times faster than software, reaching 10 times in parallel modes. Because the rounds run in hardware, it also helps against software side-channel attacks.
AES-256 vs AES-128 vs ChaCha20
| AES-128 | AES-192 | AES-256 | ChaCha20-Poly1305 | |
|---|---|---|---|---|
| Standard | FIPS 197 | FIPS 197 | FIPS 197 | RFC 7539 / 8439 |
| Rounds | 10 | 12 | 14 | n/a (not AES) |
| Best single-key attack (biclique, 2011) | 2^126.1 | 2^189.7 | 2^254.4 | n/a |
| TLS 1.3 (RFC 8446) | Mandatory (AES-128-GCM) | Not listed | SHOULD implement (AES-256-GCM) | SHOULD implement |
| CNSS 2003, US classified use | Up to SECRET | Up to TOP SECRET | Up to TOP SECRET | Not covered |
| OpenVPN 2.6 default order | 2nd | Not listed | 1st | 3rd, when available |
Against brute force, AES-256 has a key space 2^128 times larger than AES-128, not twice as large. In one academic model, though, AES-256 comes out weaker: its key schedule let Biryukov and Khovratovich (2009) attack the full cipher with 2^99.5 time and data, later improved to 2^99.
That attack needs "related keys", meaning keys linked in a way the attacker chooses. Real protocols do not create keys like that, so the attack does not affect VPN or TLS traffic.
Under RFC 8446 (TLS 1.3, August 2018), TLS_AES_128_GCM_SHA256 is the mandatory suite. A browser connection using AES-128-GCM is running the protocol's baseline, not a downgrade.
ChaCha20-Poly1305 is a separate AEAD cipher, not a variant of AES. The WireGuard protocol uses it for all symmetric encryption, together with Curve25519, BLAKE2s, SipHash24 and HKDF, and contains no AES. On phones without AES hardware, ChaCha20 is often the faster choice. Where AES-NI is present, the hardware speedup changes that, so benchmark on your own device (step 6 below).
Is AES-256 secure? Attacks, quantum computers and the real risks
AES-256 has not been broken. The best known single-key attack on the full cipher is the 2011 biclique attack by Bogdanov, Khovratovich and Rechberger. It costs about 2^254.4 operations, which is only marginally cheaper than brute force and not practical. The only other notable result against full AES-256 is the 2009 related-key attack.
The NIST post-quantum FAQ addresses Grover's algorithm. In theory it gives a quadratic speedup, but its steps must run one after another, so NIST expects little or no advantage against AES. NIST expects AES-128 to stay secure for decades and says AES-192 and AES-256 "will still be safe for a very long time". It does not recommend doubling AES key lengths, provided no new weaknesses are found.
The quantum risk sits in the key exchange. NIST IR 8547, finalised on October 27, 2026, sets the US transition away from quantum-vulnerable public-key algorithms to post-quantum key establishment and signatures, and leaves AES in place.
If the RSA or ECDH handshake that set up a session is broken, the AES key it produced is exposed with it. That is why a post-quantum hybrid key exchange matters more than the AES key length.
In practice, AES fails because of how it is used:
- Nonce reuse in GCM. Repeating a nonce under the same GCM key breaks both confidentiality and integrity. Joux's "forbidden attack" shows that a single repeat allows universal forgery.
- Random GCM nonces. A 2024 IACR paper argues that GCM with random 96-bit IVs gives under 97 bits of security, not 128, and urges NIST to forbid random 96-bit nonces. On March 5, 2024, NIST announced a revision of SP 800-38D that will drop tags shorter than 96 bits, clarify IV constructions and confirm that TLS 1.3's IV construction is approved.
- ECB mode, which leaks patterns as described above.
- Weak key exchange. If the handshake breaks, the attacker gets the AES key directly.
- Stolen keys and compromised endpoints. Malware on the device can read data before it is encrypted or after it is decrypted.
What "AES-256" does and doesn't tell you about a VPN
AES-256 is only the cipher inside a protocol such as OpenVPN, IKEv2/IPsec or a vendor protocol. The protocol handles key exchange, authentication, forward secrecy and rekeying, and a strong cipher cannot fix a weak protocol. It also does nothing about a provider that keeps records of your traffic, which is what a no-logs policy covers.
23 of our 24 catalogued VPNs list AES encryption, so the badge alone says little.
Of the 24 VPNs in our catalogue, 23 list AES encryption as a feature, so the label barely tells them apart. Some list it next to WireGuard, whose tunnel runs ChaCha20-Poly1305. For those apps, the AES-256 claim describes a different protocol in the same app.
"Military-grade" refers to the same public FIPS 197 algorithm, not a stronger version. The June 2003 CNSS Policy 15 fact sheet approved all AES key lengths for US classified information up to SECRET and required 192- or 256-bit keys for TOP SECRET. It also required NSA to review and certify any implementation before it was bought or used. Consumer VPNs do not have that certification.
A key size claim says nothing about the mode. In April 2020, Zoom's documentation said "AES-256", but Citizen Lab found that each meeting used one shared AES-128 key in ECB mode. I'd treat a bare "AES-256" badge as a reason to ask questions, not as evidence.
How to check which cipher your VPN or browser uses
- OpenVPN: after connecting, look in the client log for a line like
Data Channel: cipher 'AES-256-GCM'. CBC or BF-CBC means an outdated setup. In OpenVPN 2.6,--data-ciphersdefaults toAES-256-GCM:AES-128-GCM:CHACHA20-POLY1305when ChaCha20-Poly1305 is available, and toAES-256-GCM:AES-128-GCMotherwise. - WireGuard and vendor variants built on it: the cipher is always ChaCha20-Poly1305. An "AES-256" claim for that protocol is marketing copy.
- Websites: in Chrome or Firefox, open DevTools > Security, or run
openssl s_client -connect example.com:443 -tls1_3. Either shows the negotiated suite, for example TLS_AES_256_GCM_SHA384 or TLS_AES_128_GCM_SHA256. - IKEv2/IPsec: on Windows, run
Get-VpnConnectionandGet-VpnConnectionIpsecConfiguration. On Linux with strongSwan, runswanctl --list-sas. Both show the encryption algorithm, for example AES_GCM_16-256. - AES hardware: on Linux, run
grep -o -m1 aes /proc/cpuinfo. If it printsaes, the CPU has AES instructions. - Speed: run
openssl speed -evp aes-256-gcm, thenopenssl speed -evp chacha20-poly1305, and compare the throughput on your device. - Documentation: check the provider's whitepaper or independent audit for three things: the mode (GCM, CBC or ECB), the key exchange (ECDH or Curve25519, and whether a post-quantum hybrid is offered) and how often keys are renegotiated.
What to look for when choosing an encrypted service
- An AEAD cipher: AES-256-GCM, ChaCha20-Poly1305 and AES-128-GCM are all sound.
- No fallback to CBC or BF-CBC in OpenVPN configurations.
- Modern key exchange with forward secrecy: ECDH or Curve25519, ideally with a post-quantum hybrid option, which addresses the threat NIST IR 8547 targets.
- Regular rekeying, so one compromised key exposes as little traffic as possible.
- A published whitepaper that names the mode and the key exchange, not just the key length.
- An independent audit of the apps and servers.
- Open-source clients, so anyone can inspect the implementation.
The cipher only protects data while the tunnel is up. Stopping traffic from leaking when the connection drops is the job of a kill switch.
A short history of AES
- 1997: NIST announces the AES effort to replace DES on January 2 and issues the call for algorithms on September 12.
- 1998: NIST announces 15 candidates on August 20, presented at the First AES Candidate Conference.
- 1999: five finalists are chosen: MARS, RC6, Rijndael, Serpent and Twofish.
- 2000: on October 2, NIST selects Rijndael, designed by Daemen and Rijmen.
- 2001: FIPS 197 is published on November 26.
- 2003: CNSS Policy 15 approves AES for US classified information.
- 2007: SP 800-38D standardises GCM.
- 2009 and 2011: the related-key (2^99.5) and biclique (2^254.4) attacks are published.
- 2018: TLS 1.3 allows only AEAD suites: AES-GCM, AES-CCM and ChaCha20-Poly1305.
- 2020: Citizen Lab reports that Zoom's "AES-256" was AES-128 in ECB mode.
- 2023: FIPS 197-upd1 is published on May 9, after a December 19, 2022 draft. It makes no technical changes to the algorithm.
- 2024: NIST announces the SP 800-38D revision for GCM.
- 2026: NIST IR 8547 is finalised on October 27.
Tools that have it
From the directory, based on each tool's own feature list. Check the plan: some offer it only on paid tiers or certain apps.
- P
Proton VPNAES-256 or ChaCha20 over WireGuard, OpenVPN · Free, from $3.49/mo
- N
NordVPNEncrypts VPN traffic with AES-256 · From $2.99/mo - E
ExpressVPNAES-256 encryption with Lightway · From $2.99/mo - S
SurfsharkVPN tunnel uses AES-256 · From $2.49/mo - P
PureVPNOpenVPN and IKEv2 with AES-256 · From $1.69/mo - I
IPVanishVPN uses AES-256 encryption · From $2.19/mo - P
PrivateVPNAES-256 with 2048-bit keys · From $2.40/mo - V
VeePNAES-256 encrypts connection · From $1.99/mo
- T
Turbo VPNUses AES-256 encryption · Free, from $3.33/mo
- A
Amnezia VPNOpenVPN and other protocols use AES · Free, from $3.30/mo - T
TunnelBearVPN uses AES-256 encryption · Free, from $3.33/mo - P
Private Internet AccessSelectable 128-bit or 256-bit AES · From $2.03/mo - H
Hotspot ShieldHydra protocol encrypts traffic with AES-256 · Freemium - W
WindscribeOpenVPN tunnel uses AES-256 · Freemium - C
CyberGhostVPN uses AES-256 encryption · From $2.19/mo - M
Mullvad VPNWireGuard and OpenVPN with AES-256 · From $5.61/mo
- T
TorGuardOpenVPN with AES-256 encryption · Paid - S
SpeedifyAES-256 tunnel for all connections · From $4.99/mo - B
BetternetEncrypts web traffic with AES-256 · Free, from $6/mo
- V
VyprVPNOpenVPN with AES-256 encryption · Paid
Show all 23
FAQ
Is AES-256 symmetric or asymmetric?
Symmetric: both sides use the same secret key. VPNs and TLS first agree on that key with an asymmetric exchange such as ECDH, Curve25519 or RSA, then use AES for the data.
How long would it take to brute-force AES-256?
Longer than is physically feasible. The key has 2^256 possible values, about 1.16 × 10^77, and the best known shortcut still needs about 2^254.4 operations.
Does WireGuard use AES-256?
No. WireGuard uses only ChaCha20-Poly1305 for symmetric encryption, so an AES-256 claim for a WireGuard-based tunnel does not describe that protocol.
Do I need AES-NI for fast AES-256?
It helps a lot: Intel says AES-NI makes AES 3 to 10 times faster than software. On devices without it, ChaCha20-Poly1305 is often faster.
Is AES-256 really military-grade?
It is the same public FIPS 197 algorithm anyone can use. US classified use under the 2003 CNSS policy also required NSA-certified implementations, which consumer VPNs do not have.
Should I pick AES-128 or AES-256?
Both are approved and unbroken. NIST expects AES-128 to stay secure for decades, and TLS 1.3 makes AES-128-GCM its mandatory suite.
Cite this page
You are welcome to quote this entry and reuse its pictures with a link to this page.
Vovchyk, S. (2026, November 7). AES-256 encryption. capyrate Wiki. https://capyrate.com/wiki/aes-256<a href="https://capyrate.com/wiki/aes-256">AES-256 encryption, capyrate Wiki</a>