VPN encryption

Updated 21 September 2026 · How we research

"Military-grade encryption" is a marketing phrase, not a specification. What actually matters is which cipher protects your data, how the two ends agree on keys, and whether those keys are discarded afterwards.

The three jobs encryption does

Confidentiality

A symmetric cipher — normally AES-256-GCM or ChaCha20-Poly1305 — makes the payload unreadable to anyone carrying it.

Key exchange

Elliptic-curve Diffie-Hellman, usually Curve25519, lets both ends derive a shared secret without ever sending it.

Authentication

Certificates or pre-shared keys prove the server is the one you meant to reach, which is what stops an interception attack.

The ciphers you will actually see

AEAD means the cipher provides both confidentiality and integrity in one step, so tampering is detected rather than silently passed through.

CipherTypeUsed byNotes
AES-256-GCMAEAD block cipherOpenVPN, IKEv2/IPsecHardware accelerated on most modern CPUs via AES-NI, which makes it very fast on desktops
ChaCha20-Poly1305AEAD stream cipherWireGuard, OpenVPNFaster than AES on processors without AES-NI, which includes many mobile and older chips
Curve25519Key agreementWireGuard, modern TLSFast, with a design that avoids several classes of implementation mistake
SHA-2 / BLAKE2sHashingVariousIntegrity checking and key derivation

AES-256 versus AES-128

Both are unbroken. AES-256 has a larger key and therefore a larger margin against future attacks, but a correctly implemented AES-128 tunnel is not a weak one. Cipher strength is rarely the part of a VPN that fails; configuration and leak handling are.

Perfect forward secrecy

Forward secrecy means each session uses ephemeral keys that are thrown away afterwards. If a server's long-term private key were later compromised, recorded traffic from past sessions still could not be decrypted. WireGuard rekeys frequently by design; OpenVPN and IKEv2 achieve the same through ephemeral Diffie-Hellman. Treat its absence as disqualifying.

What encryption does not do

Frequently asked questions

Is AES-256 better than ChaCha20?
Neither is broken. AES-256 is faster where hardware acceleration exists; ChaCha20-Poly1305 is faster on processors without it, which is why WireGuard chose it as a fixed default.
What does 'military-grade encryption' mean?
Nothing specific. It usually refers to AES-256, which is a public NIST standard available to anyone. Treat the phrase as marketing.