Skip to main content
Challenges Cube root attack
Cryptography Medium Small exponent Solves: 7

Cube root attack

Author: CyberSamSU
Points
30

Some old systems choose e = 3 for speed. The encryption is in the form of c = m3 mod n.

The problem is that if the message is short, the number m3 remains smaller than n. In this case, the mod n operation does not work at all — no remainder is taken. That is, c is exactly equal to m3, and to recover the message it is enough to simply take the integer cube root. No private key is needed.

Attention: writing c ** (1/3) will not work — float precision is not enough for a number with hundreds of digits. Calculate the integer root using Newton's method or binary search.

The key and ciphertext are in the kalit.txt file (in the form of nom = qiymat). The decrypted bytes directly give the flag.

Exactly for this reason, real RSA always uses padding (for example, OAEP): it expands the message to the same length as n.

Attached files
kalit.txt Log in to download
SHA-256 checksums
kalit.txt: e095d0679956d33015c24d35bd362af81925efd3d72088d0cadfb4fea16979dd
Theory: learn the topic
Learning paths: Cryptography 201
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −3 pts Log in
Hint 2 −6 pts Log in
Hint 3 −9 pts Log in
To submit a flag, log in.

First solvers

1. Абдул 08.09.2026
2. Лазиз 04.10.2026
3. Mirjaxon Qaxxarov 27.10.2026
4. Odam 04.11.2026
5. Furqat Turayev 10.11.2026
6. arcanum 11.11.2026
7. Doston Allayarov 28.11.2026