ECDH Shared Secret Demo
Simulates two parties deriving a shared secret over an insecure channel.
ECDH P-256
Two ephemeral P-256 key pairs are generated and both sides are shown to reach the same shared secret. The secret itself is not shown.
Related tools
- HKDF Key DerivationHMAC-based extract-and-expand key derivation (used in TLS 1.3 and Signal).
- HMAC Generator (SHA-256 / SHA-512)Computes a message authentication code from a secret key and data.
- HMAC VerifierVerifies an HMAC. The JavaScript runtime does not guarantee constant-time comparison.
- Public Key Fingerprint CalculatorSHA-256 fingerprint of the DER bytes of an SPKI PEM public key.
- PEM Certificate / Key InspectorParses -----BEGIN CERTIFICATE / PRIVATE KEY----- blocks and shows their type and bytes.