Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

Why am I not able to Mitm a Diffie-Hellman Key Exchange?

Asked by Ankesh Kumar Dec 16, 2021 1.2K views 1 answer
Share

About this question

 Why am I unable to execute a man in the middle attack at Diffie Hellman Key Exchange, when I researched about this, I came across the 5 steps with Alpha controlling the network -

1.    You attempt to send me g and p, but Alpha intercepts and learns g and p

2.    You come up with a and attempt to send me the result of ga mod p (A), but Alpha intercepts and learns A

3.    Alpha comes up with b and sends you the result of gb mod p (B)

4.    You run Ba mod p

5.    Alpha runs Ab mod p

 During this whole process Alpha pretends to be you and creates a shared secret with me using the same method. Now, both you and Alpha, and Alpha and me each have pairs of shared secrets. You now think it's safe to talk to me in secret, because when you send me messages encrypted with your secret Alpha decrypts them using the secret created by you and Alpha, encrypts them using the secret created by Alpha and me, then sends them to me. When I reply to you, Alpha does the same thing in reverse

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.