Skip to main content
Challenges ECDH: calculating the shared secret
Cryptography Medium ECDH key exchange Solves: 6

ECDH: calculating the shared secret

Author: CyberSamSU
Points
35

ECDH (Elliptic Curve Diffie-Hellman) is a method for agreeing on a shared secret key over an open channel. How it works:

  1. Both parties take the same curve and the same base point G.
  2. Alice chooses a secret number nA and sends QA = nA·G openly.
  3. Bob chooses a secret number nB and sends QB = nB·G openly.
  4. Both of them calculate S = nA·QB = nB·QA = nAnB·G.

The eavesdropper sees only G, QA, and QB. To derive S from this, one needs to solve the ECDLP — which is practically impossible on large curves.

You know Bob's secret number. Find the x coordinate of the shared secret point (in practice, exactly this number is used in key generation).

p = 13969939049112976651
a = 5092850613958644296
b = 11312807331505269746
G = (11512486443990282652, 13598393654215688787)
Q_A = (13126956389792104174, 4557863138326492897)
n_B = 35075382443175788

Answer: number only — in decimal format, without spaces and without additional characters (for example 1234).

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

First solvers

1. Лазиз 04.10.2026
2. Mirjaxon Qaxxarov 27.10.2026
3. Odam 05.11.2026
4. arcanum 11.11.2026
5. Jasmin Xuseinova 15.11.2026
6. AGENT X 28.11.2026