CyberKit

Diffie-Hellman Key Exchange

Also called DH, DHKE.

A method for two parties to derive a shared secret over an open channel.

What it is

A key-agreement protocol that lets two parties who have never met compute a shared secret over an insecure channel, without ever transmitting the secret itself. Each side combines its private value with the other's public value.

Why it matters

Diffie-Hellman is the engine behind modern session-key negotiation and is what enables perfect forward secrecy, since a fresh exchange per session means stealing a long-term key does not unlock past traffic.

In practice

Two endpoints exchanging public values to agree on a session key that no eavesdropper can reconstruct.

What to look for

  • Small or common prime groups below 2048 bits.
  • Static keys where ephemeral ones were expected.
  • TLS cipher suites with DHE or ECDHE, which give forward secrecy.

Common mistake

Forgetting authentication. Plain Diffie-Hellman sets up a secret with whoever answers, including an attacker in the middle.

Practice it nearby

CyberKit has no tool for this term itself. These are the closest places to practice it.

In the field

Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.

  • OpenSSL Open source

    The command line toolkit for inspecting certificates, keys and TLS connections.

  • HashiCorp Vault Source available

    Manages secrets and encryption keys, and can encrypt data as a service.

  • AWS Key Management Service Cloud service

    AWS's managed service for creating and controlling encryption keys.

Read next

Sources