RTUComputer ScienceYr 2021 · Sem 72021

Q12Information System Security

Question

4 marks

Describe the Diffie-Hellman key exchange algorithm.

Answer

A critical mathematical breakdown of the Diffie-Hellman Key Exchange. Details how two parties can mathematically generate an absolute shared secret over a fully compromised, public channel using Discrete Logarithms.

Diffie-Hellman (DH) is NOT an encryption algorithm. It is a brilliant mathematical architecture that allows two parties (Alice and Bob) to violently generate an identical, highly secure shared symmetric key while communicating over a completely public, hacker-infested internet. Its absolute security relies on the catastrophic computational difficulty of solving the Discrete Logarithm Problem.

Alice and Bob publicly agree on two mathematical constants: a massive prime number , and a base generator . These are sent in absolute plaintext; hackers can see them.

  • Step 1 (Private Secrets): - Alice violently generates a secret integer . She keeps this absolutely hidden. - Bob violently generates a secret integer . He keeps this absolutely hidden.
  • Step 2 (Public Calculation): - Alice mathematically calculates her Public component: . She sends to Bob over the public internet. - Bob mathematically calculates his Public component: . He sends to Alice.
  • Step 3 (The Genius Shared Secret): - Alice receives . She mathematically calculates the Shared Secret . - Bob receives . He mathematically calculates the Shared Secret .

Both Alice and Bob arrive at the EXACT same mathematical number because:

A hacker sniffing the network sees and . To find the secret key , the hacker MUST find Alice's secret or Bob's secret . To find , the hacker must mathematically solve . This is the Discrete Logarithm Problem, and for a 2048-bit prime , it is mathematically impossible to solve before the universe ends.

Back to Paper