Skip to main content
Challenges Addition-based fake DH
Cryptography Easy DH attacks Solves: 7

Addition-based fake DH

Author: CyberSamSU
Points
25

A student wanted to "speed up" Diffie-Hellman: exponentiation is slow, so they replaced it with simple multiplication. The new protocol is as follows:

  • Alice: A = g · a mod p
  • Bob: B = g · b mod p
  • Shared secret: s = B · a mod p = A · b mod p = g · a · b mod p

Mathematically, everything "works": both parties arrive at the same number. But there is a fatal flaw here. Reversing exponentiation (discrete logarithm) is difficult, but reversing multiplication — modular division — is a one-second job.

The following was intercepted on the channel. Find the shared secret s:

p = 3030429341
g = 983196

A = 1436367541
B = 194826954

Flag: BAYROQ{DH_additiv_zaif_<s>}

Hints 2
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −2 pts Log in
Hint 2 −5 pts Log in
To submit a flag, log in.

First solvers

1. Лазиз 04.10.2026
2. Mirjaxon Qaxxarov 27.10.2026
3. Odam 06.11.2026
4. Doston Allayarov 12.11.2026
5. Jasmin Xuseinova 15.11.2026
6. hacker_777 19.11.2026
7. milanchka_26 19.11.2026