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.

bc1qevmdgaux2dt4umawrpnl554v4ayashwddcfpe9

Bitcoin (BTC) · Native SegWit (bc1q)