IT lexicon › Security › Key exchange

Key exchange

Security På svenska → Updated: 2026-11-18

The process by which two devices safely agree on a shared secret encryption key without exposing it to eavesdroppers.

Before two devices can encrypt their communication, they need to agree on a key — but they can't send it in plain text. Key exchange solves that paradox. Diffie-Hellman is the classic: both sides exchange some public math, perform secret calculations locally, and end up with the same secret key that an eavesdropper cannot reconstruct from the public exchange.

Wi-Fi uses a Four-Way Handshake (part of WPA2/WPA3) when a device connects to a router. Bluetooth has an equivalent during pairing. Without secure key exchange, anyone at the coffee shop could decrypt all those «secure» Wi-Fi connections. The handshake is often the bottleneck for connection speed — which is why routers sometimes feel sluggish when many devices connect at once.

← Back to the lexicon