Skip to main content
Challenges Smooth-order group
Cryptography Hard Discrete logarithm Solves: 9

Smooth-order group

Author: CyberSamSU
Points
95

The difficulty of the discrete logarithm depends not on the size of p, but on the structure of the group order. The following p is greater than 80 bits, but p-1 consists only of small prime factors. Such numbers are called smooth.

Pohlig and Hellman showed this: with a smooth order, a large problem is divided into several very small problems. For each prime divisor q of p-1, we descend into a small subgroup:

g_q = g^((p-1)/q) mod p
h_q = h^((p-1)/q) mod p

g_q^(x mod q) = h_q   -> x mod q  (atigi q ta variant)

For each q, we brute-force x mod q (here q < 10⁶, which means a few hundred thousand steps), then we combine all the remainders using the Chinese Remainder Theorem to recover x. The product of the moduli (i.e., the qs) is equal to p-1 — thus the answer is unique.

p = 21828401477478492502354191407
p - 1 = 2 * 180811 * 271261 * 361769 * 748093 * 822229
g = 5

A = 12837842079537664901601609090

Find Alice's secret number a.

Flag: BAYROQ{DH_silliq_tartib_<a>}

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

First solvers

1. Абдул 15.09.2026
2. W.o.X 17.09.2026
3. Лазиз 04.10.2026
4. testrejim 09.10.2026
5. 11111tttt 09.10.2026
6. Mirjaxon Qaxxarov 26.10.2026
7. Odam 04.11.2026
8. arcanum 11.11.2026
9. Jasmin Xuseinova 15.11.2026