Skip to main content
Challenges Common prime number
Cryptography Medium Factorization Solves: 7

Common prime number

Author: CyberSamSU
Points
50

In 2012, researchers collected millions of TLS certificates from the internet and compared their moduli with each other. It turned out that some devices do not have enough randomness when generating keys and reuse the same prime number.

If two moduli share a single prime number — n1 = p·q1 and n2 = p·q2 — both are broken instantly: p = gcd(n1, n2). The Euclidean algorithm works in microseconds even for 1024-bit numbers, and factorization is not needed at all.

Two organizations used the same poor-quality generator. Their public keys and the message sent to the first organization are in the kalitlar.txt file. Read the message — the decrypted bytes directly give the flag.

Attention: the result of gcd must not be equal to 1 — otherwise it means the moduli are independent.

Attached files
kalitlar.txt Log in to download
SHA-256 checksums
kalitlar.txt: 7336aa9b466e291b75fbf6e39d4c9d9044c7912f95e9b207d22640a1a1081d14
Hints 2
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −5 pts Log in
Hint 2 −10 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 17.09.2026
2. Лазиз 04.10.2026
3. testrejim 09.10.2026
4. Mirjaxon Qaxxarov 27.10.2026
5. Odam 05.11.2026
6. arcanum 11.11.2026
7. Doston Allayarov 28.11.2026