Skip to main content
Calcimator

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
Ad Placeholder

Formula

Shared Secret = (g^a)^b mod p = (g^b)^a mod p

Related Calculators

Ad Placeholder