CryptoTools.site
Instant Swap Finance Tools Security Tools Glossary About Why us How it works
Security & Cryptography

Diffie-Hellman Exchange

An interactive visual simulator demonstrating how the Diffie-Hellman Key Exchange protocol works math-wise, enabling two parties to establish a shared secret key securely.

1. Public Parameters (Shared publicly)

Alice
Private Key (a) β€” Hidden
β€”
Public Key (A = g^a mod p) β€” Sent
β€”
Shared Secret Key (s = B^a mod p)
β€”
Bob
Private Key (b) β€” Hidden
β€”
Public Key (B = g^b mod p) β€” Sent
β€”
Shared Secret Key (s = A^b mod p)
β€”

100% Private & Client-Side

Your private keys & shared secret never leaves your browser β€” not even for a millisecond.

Verified Private
πŸ”’
No Server Transmission All computation runs in your browser. Zero data sent to our servers.
πŸ’Ύ
No Storage We store nothing. No databases, no logs, no cookies with your input.
🌐
Works Offline Once loaded, this tool works even with no internet connection.
Open-source on GitHub β€” read and verify the exact code powering this tool. View Source Code β†’
πŸ› οΈ

Support the Project

Every contribution keeps the tools free & independent

30+ Free Tools
0 Data Logged
100% Client-Side

CryptoTools.site is independently built and maintained. If these tools have been useful to you, a crypto contribution directly sustains development and hosting β€” no middlemen, no subscriptions.

bc1q5uamfetsrxxms7h6sfkjj743cmuxzv7dze6rkg

Bitcoin (BTC) Β· Native SegWit (bc1q)