Diffie-Hellman Key Exchange Calculator
Calculate Diffie-Hellman key exchange parameters, shared secret, and security analysis.
Inputs
Results
Alice's Public Key
8
Bob's Public Key
19
Shared Secret
2
Security Level
4.5 bits
Discrete Log Complexity4.8
How to Use This Calculator
- Enter the prime modulus (p) and generator (g) values.
- Set each party private key value.
- Review the public keys and shared secret computed by the DH protocol.
- Verify the shared secret matches on both sides to confirm the protocol works correctly.
- Use group sizes of at least 2048 bits in production -- 768 and 1024-bit groups are deprecated.
Ad Placeholder
Formula
Shared Secret = (g^a)^b mod p = (g^b)^a mod pRelated Calculators
RSA Key Strength Calculator
Calculate RSA key strength, equivalent symmetric key length, brute force time, and security margins.
Elliptic Curve Cryptography Calculator
Calculate ECC key strength, equivalent RSA key length, security level, and cryptographic parameters.
Encryption Key Space Calculator
Calculate encryption key space size, brute force time, and security level for cryptographic algorithms.
Ad Placeholder