On this page

Summary: VPN encryption protects the data traveling between your device and the VPN server. Anyone watching the network in between, such as a public Wi-Fi operator or your internet service provider (ISP), sees scrambled packets addressed to the VPN server instead of your actual traffic, and tampering with their protected contents is detected. That protection covers one segment of the path, and only the traffic that actually enters the tunnel. It does not hide connection details or otherwise unencrypted content from the VPN provider, does not itself protect traffic after the VPN server forwards it, and does not make you anonymous.

VPN Advisors is an independent, affiliate-supported website that explains how VPNs work, what they protect, and how to evaluate VPN services. This article explains how VPN encryption protects traffic between your device and the VPN server, including how encryption keys are established and what happens when traffic leaves the tunnel. For a broader explanation of VPN tunnels and traffic protection, see our How Does a VPN Work? guide.

What VPN encryption does

Encryption turns readable data (plaintext) into ciphertext that only someone holding the right key can turn back. In a VPN, your device encrypts packets routed into the VPN before sending them, and the VPN server decrypts them on arrival; replies make the same trip in reverse. Android’s VPN developer guide describes this loop plainly: a VPN app reads outgoing packets from a local network interface, encrypts them, and sends them to the VPN gateway, then hands decrypted incoming packets back to the device.

Secure VPN configurations do more than hide content. Many use authenticated encryption, which, as the IETF’s RFC 5116 defines it, provides confidentiality along with a way to check the integrity and authenticity of the data. In practice, altered authenticated data fails verification and is discarded rather than silently accepted. That second property matters: the IPsec Encapsulating Security Payload specification (RFC 4303) notes that encryption without a strong integrity mechanism generally defends only against passive attackers and can be insecure against some active attacks. When a VPN says your traffic is “encrypted,” the meaningful protection is content that outsiders can’t read, plus checks that detect attempts to alter or forge that protected content.

A useful mental model is a sealed, tamper-evident envelope addressed to the VPN server. Anyone handling it along the way can see where it’s headed and roughly how large it is, but not what’s inside, and they can’t open and reseal it without the recipient noticing.

Encryption is not the tunnel

VPN explanations often treat “the encrypted tunnel” as a single thing. It is actually several mechanisms working together, and keeping them separate explains most of encryption’s limits.

Encryption is not the tunnel
Mechanism What it does What it doesn’t do
Routing Decides which traffic on your device is sent to the VPN at all Protect anything by itself
Tunneling (encapsulation) Wraps your original packet inside a new packet addressed to the VPN server Hide the contents; a tunnel can exist without encryption
Encryption with integrity Protects tunnel contents from reading and tampering between your device and the VPN server Decide what enters the tunnel or protect data beyond the VPN server
Handshake and authentication Verifies who is on the other end and establishes the keys Encrypt your ongoing traffic on its own

Tunneling works without encryption. In plain IP-in-IP encapsulation, described in RFC 2003, the outer header identifies the two ends of the tunnel while the inner header carries the original sender and recipient, and nothing is encrypted. An encrypted VPN tunnel protects the inner packet, but observers can still see the outer header, along with packet sizes and timing. Routing sits in front of both: traffic that is never routed into the tunnel is never encrypted by it. That gap is behind several of the real-world failures covered below.

How the keys are established

Encryption is only as trustworthy as its keys and the identity of whoever holds the other copy. VPN protocols therefore work in two phases: a handshake that authenticates both sides and agrees on fresh keys, followed by encryption of the actual traffic with those keys. The handshake is a separate process from traffic encryption, and protocols handle it differently:

  • IKEv2/IPsec. IKEv2 (RFC 7296) performs mutual authentication between the two parties and establishes the security associations, including shared keying material, that IPsec then uses to protect packets.
  • WireGuard. According to its protocol documentation, WireGuard uses a handshake based on the Noise protocol framework with Curve25519 key exchange, then encrypts traffic with ChaCha20-Poly1305. Its technical whitepaper describes the design as deliberately lacking cipher agility: every peer uses the same fixed cryptographic suite, and peers are identified by their public keys.
  • OpenVPN. OpenVPN separates a TLS-based control channel, which handles the handshake, from a data channel that encrypts packets. Its Access Server documentation lists AES-256-GCM, AES-128-GCM, and ChaCha20-Poly1305 as recommended data-channel ciphers and marks older options such as BF-CBC as deprecated.

Authentication is what keeps encryption from protecting a conversation with the wrong party. RFC 4303 makes the link explicit: in IPsec, proof of where a packet came from rests on binding the integrity key to the identity of the authenticated peer. If an impostor could complete the handshake, strong encryption would simply deliver your traffic to them securely.

Many VPN configurations also use forward secrecy. NIST’s glossary definition, drawn from its guide to IPsec VPNs, describes perfect forward secrecy as an option that creates a new key through a fresh Diffie-Hellman exchange for each security association, so compromised older keys can’t be used to attack newer ones. More broadly, forward secrecy is designed to keep recorded past sessions confidential even if a long-term key is compromised later. Because it is an option in IPsec, whether it’s in use depends on configuration; WireGuard’s whitepaper describes forward secrecy as a built-in property of that protocol.

What stays visible while encryption is working

Even when encryption works exactly as designed, each party along the path still sees something.

What stays visible while encryption is working
Who What they can still see Why
Your local network and ISP That you are connected to a VPN server’s IP address, plus the timing and volume of your traffic Outer packet headers must stay readable for delivery; RFC 4303 describes IPsec’s traffic-flow confidentiality as limited
The VPN provider Your traffic after decryption, including destinations and any content not separately encrypted The VPN server is where VPN encryption ends
Websites and services you use Traffic arriving from the VPN server, plus anything you share with them or that tracks you Logins, cookies, tracking pixels, and fingerprinting work independently of the tunnel
Networks beyond the VPN server Unencrypted content and visible connection details; HTTPS-protected content remains encrypted VPN encryption covers only the device-to-server segment

That last row is why HTTPS still matters with a VPN. HTTPS encrypts content between your browser and the website itself, independent of the VPN. On the leg between your device and the VPN server, HTTPS content is wrapped in VPN encryption as well; beyond the server, HTTPS is the remaining protection. The EFF’s Surveillance Self-Defense guide describes the division of labor: HTTPS protects content but can still expose metadata such as destination domains and traffic sizes along the network path, while a VPN can shield those details from a local observer and make them visible to the VPN provider.

The FTC frames the result the same way. In its guidance on VPN apps, it notes that a VPN typically obscures the content of your traffic from your ISP or Wi-Fi provider but doesn’t make you anonymous; it moves your trust from those networks to the VPN provider, and sites can still track you through information you give them.

When traffic doesn’t get the protection you expect

The failures described below have nothing to do with someone breaking a modern cipher. They happen because traffic was never properly encrypted, or never entered the tunnel at all.

  • Weak or missing encryption. Citing research on nearly 300 VPN apps, the FTC warns that some apps use protocols that don’t encrypt traffic, or encrypt only part of it. The EFF singles out PPTP as broken encryption whose traffic can be easily decrypted.
  • Traffic sent around the tunnel by design. Split tunneling and per-app VPN settings intentionally route some traffic outside the VPN. Google’s Android Enterprise VPN documentation describes allowed and disallowed app lists, plus an option that lets apps bypass the VPN. Traffic excluded this way isn’t covered by VPN encryption.
  • Traffic pushed around the tunnel by an attacker. In 2024, Leviathan Security Group disclosed TunnelVision (CVE-2024-3661), in which a rogue DHCP server on the local network installs routes that steer traffic away from the VPN interface. The affected packets are never encrypted by the VPN, even though the VPN still appears connected. Exposure depends on the operating system and on how a VPN client enforces its routing; researchers reported that Android was not affected because it doesn’t support the DHCP option involved.
  • Gaps when the connection drops. If the VPN disconnects and the device falls back to its regular connection, new traffic leaves unprotected. Android’s “Block connections without VPN” setting exists to force traffic through the VPN instead; comparable controls, often marketed as kill switches, vary by platform and app.

Encryption also stops at the endpoints. Before VPN encryption is applied and after it is removed, the device and VPN server can handle the packet, but any HTTPS-protected content remains encrypted. Malware on your device, a compromised account, or a provider that logs traffic all fall outside what VPN encryption addresses.

How to read VPN encryption claims

Marketing language about encryption often implies more than the mechanism delivers. “Military-grade encryption” is the clearest example. In its VPN investigation, Consumer Reports points out that the military has no single standard form of encryption and that many security professionals treat the phrase as a red flag because it doesn’t really mean anything.

Algorithm names need context, too. A larger key size or a familiar cipher name isn’t, by itself, a measure of real-world protection. OpenVPN’s documentation lists AES-256-GCM, AES-128-GCM, and ChaCha20-Poly1305 together as recommended options and describes AES-256-CBC and AES-256-GCM as equal in encryption strength, with GCM preferred because it’s faster. That comparison concerns AES encryption strength, not the whole setup: CBC needs a separate authentication check, while GCM combines encryption and authentication. WireGuard offers no cipher choice at all. What usually separates a sound setup from a weak one is the protocol design, authenticated encryption, proper key establishment, and whether all the traffic you expect to be protected actually enters the tunnel.

When you evaluate an encryption claim, these questions get closer to what matters:

  1. Which protocol does it use? Mainstream options include WireGuard, OpenVPN, and IKEv2/IPsec. PPTP isn’t considered secure.
  2. Is the encryption authenticated? Ciphers such as AES-GCM and ChaCha20-Poly1305 provide confidentiality and integrity together.
  3. Does it encrypt all traffic, or only some? Partial encryption is a specific FTC warning.
  4. How does it handle traffic that could bypass the tunnel? Look at behavior during disconnects and under split tunneling.
  5. Does the claim promise outcomes encryption can’t deliver on its own? Anonymity, total security, and protection from tracking all depend on far more than the encrypted link.