TOOLS / ENCRYPTIONDiffie-Hellman
(DH & ECDH)
Generate key pairs and compute shared secrets.
Calculator reference
Verification evidence and limitations →
What it calculates
Computes a shared secret from a private key and a peer’s public key.
Inputs and methods
Classic DH groups 14/15/16, or ECDH on P-256/P-384/P-521/secp256k1.
Worked example
Classic DH group 14: private key 02, peer public key 04.
Shared secret: 10, left-padded with zeros to 256 bytes
Specification and limits
The tiny private value is for demonstration only. Raw secrets need a KDF; DH alone does not authenticate peers.
RFC 3526 ↗