Instructions

This page is a two-step secret shared key generator using Diffie-Hellman algorithm.
It uses only Javascript so you can download it and run it locally for extra safety. (right click here, save link as...)
Both peers need to use this page to generate the shared key, so either give a link or send the saved page to your peer.

Step 1

  1. Enter your own secret. 12 characters at least are recommended, and make it unique. You will need it again in step 2 so write it down.
  2. Click on "Generate phase 1 exchange"
  3. Copy all the digits in the "Phase 1" text area and send it to your peer via whatever unsecured channel you want. Wait for them to send you their own Phase 1 exchange, and agree on key size.

Step 2

  1. Enter your own secret again and the desired key size.
  2. Paste the Phase 1 exhange received from your peer (not yours) in the appropriate text field.
  3. Click on "Generate PSK"
  4. Copy your secret shared key from the PSK field and voila !
Phase 1
Phase 2

PSK size : characters
PSK alphabet : Full-range Alpha-numeric only
Your own secret : (recommended at least 12 characters)
Third-party answer :