Diffie–Hellman (DH) creates a shared secret over an insecure network without transmitting that secret. Two systems exchange public keys and parameters, keep private keys secret, and independently compute the same result. section 7.1.2
The shared secret can become an AES key in a hybrid encryption scheme. DH underpins Elliptic Curve Diffie–Hellman (ECDH) and appears in TLS and SSH. section 7.1.2
Payment and warehouse services
In the ACME scenario, payment and warehouse services exchange public keys. Each combines its private key with the other service’s public key: sharedSecret = f(privateA, publicB) = f(privateB, publicA).



