Skip to main content
Challenges RSA: modular arithmetic
Cryptography Easy Modular arithmetic Solves: 16

RSA: modular arithmetic

Author: CyberSamSU
Points
12

RSA is the most famous algorithm in public key cryptography. Its entire essence is in a single operation: c = me mod n. Here m is the message converted to a number, (n, e) is the public key that everyone can see, and c is the ciphertext.

mod is the remainder of division: 17 mod 5 = 2. When calculating a large power, it is impossible to calculate me completely first and then take the remainder — this number would consist of hundreds of thousands of digits. Python has a ready-made three-argument pow(m, e, n) function: it calculates the power step by step, taking the remainder by n at each step, and returns the answer instantly.

The following public key and message are given. Calculate the ciphertext:

n = 53430301190847186826778834741
e = 65537
m = 358116840277

Flag format: BAYROQ{RS4_shifrmatn_<c>} — where <c> is the number you calculated (in decimal, without spaces).

Hints 2
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −1 pts Log in
Hint 2 −2 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. ya_d0na 11.11.2026
5. Doston Allayarov 12.11.2026
6. Maftuna 13.11.2026
7. akobir 15.11.2026
8. jasmina_05 16.11.2026
9. Zulxumor 19.11.2026
10. Azizjon_20061609 19.11.2026