Diffie-Hellman Key Exchange Demo
Interactive demo of ECDH (P-256) key exchange showing how two parties derive the same shared secret without ever transmitting private keys. Everything runs in your browser.
Not generated yet
Not derived yet
Not generated yet
Not derived yet
How it works
This demo uses ECDH on the P-256 curve via WebCrypto. Each party generates a key pair, exchanges public keys, and derives a shared 256-bit secret. The private keys never leave each party. In real protocols this shared secret is used to derive encryption keys.
Related tools
Generate strong passwords locally in your browser.
Generate secure passphrases from a word list with entropy calculation, locally in your browser.
Estimate password strength locally; no network requests.
Calculate password and passphrase entropy in bits with time-to-crack estimates.
Generate MD5/SHA256/SHA512 hashes in-browser.
Generate HMAC (SHA-256/512) using WebCrypto.