ephemeral key
A key that is generated for a single session or exchange and then thrown away, rather than kept and reused.
In more detail
Ephemeral Diffie-Hellman or X25519 key pairs are created fresh for each TLS connection and deleted afterwards, so nothing is left for an attacker to steal later that could decrypt recorded traffic. This is what gives forward secrecy, while long-term keys are used only to sign the exchange and prove identity.
Example
Fresh ephemeral keys per session give forward secrecyRelated terms
- forward secrecy — A property of key exchange where a stolen long-term private key cannot decrypt past recorded sessions, because each session used temporary keys.
- key exchange — The step in which two parties establish a shared secret key over a network, so they can then encrypt their conversation.
- Diffie-Hellman — A method that lets two parties agree on a shared secret key over a public network, even while an eavesdropper sees every message they exchange.
- TLS handshake — The opening exchange of a TLS connection, in which client and server agree on settings, check certificates and create shared keys.
Taught in
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography