Skip to main content
Challenges One-time pad — key reused
Cryptography Hard One-time pad (OTP) Solves: 7

One-time pad — key reused

Author: CyberSamSU
Points
85

The One-Time Pad (OTP) is the only mathematically absolutely unbreakable cipher. Its proof was provided by Claude Shannon in 1949. But for this, three conditions must be met simultaneously:

  1. the key must be truly random;
  2. the length of the key must be equal to the length of the message;
  3. the key must be used only once.

If the third condition is violated, the cipher immediately breaks. If C1 = M1 ⊕ K and C2 = M2 ⊕ K, then C1 ⊕ C2 = M1 ⊕ M2 — the key completely disappears, and the two plaintexts 'hold' each other.

We have exactly this situation: an employee encrypted two messages with the same key. The plaintext of the first message is known:

Salom! Ertangi mashgulot soat un beshda kutubxonaning ikkinchi qavatida boshlanadi, kechikmang va noutbukni olib keling.

First ciphertext (hex):

23559fd2d9789d48d4f4403db6bf66d361e03d93603733cd585faa2a64654874
d068464ae578baab78d9ab7cae8a3a43f8f82beae8fc21214fdd96142ce39f00
114c557eba4f9a14e64d32f232eb7739f0e2a70b5ca1db7a9e800ba05e94f68b
570c00adda9c08dc95ba0a3b3c628fd1067aedadca3c08d8

Second ciphertext (hex):

3d4180d2d638cc6c86e2402aa3b921d73ab317b54c0913e80367897f43160c51
af411775bc4884ba58e7ee5681c60779adc973d7c7907c1e15f8b54317c68e36
41657f39811fb049

Plan: K = C1 ⊕ M1, then M2 = C2 ⊕ K. Take the required part of the key so that the number of bytes matches.

Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −8 pts Log in
Hint 2 −17 pts Log in
Hint 3 −25 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 26.10.2026
5. Odam 04.11.2026
6. arcanum 11.11.2026
7. Doston Allayarov 28.11.2026