Skip to main content
Challenges Non-random stream
Cryptography Medium Stream cipher based on a weak PRNG (LCG) Solves: 10

Non-random stream

Author: CyberSamSU
Points
50

A developer wrote "their own" stream cipher. The keystream is obtained from a 32-bit linear congruential generator (LCG):

x[0] = maxfiy urug' (32-bit)
x[i+1] = (1664525 * x[i] + 1013904223) mod 2^32
k[i]   = x[i+1] >> 24          # yuqori bayt (0..255)
ct[i]  = pt[i] XOR k[i]

The plaintext begins with a known prefix: "SAMSU-LAB eslatma: ", followed by the flag. shifrlangan-xabar.txt provides the entire ciphertext (hex).

Recover the flag. Format: BAYROQ{...}.

Attached files
shifrlangan-xabar.txt Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −5 pts Log in
Hint 2 −10 pts Log in
Hint 3 −15 pts Log in
To submit a flag, log in.

First solvers

1. testrejim 09.10.2026
2. Mirjaxon Qaxxarov 27.10.2026
3. Odam 05.11.2026
4. arcanum 11.11.2026
5. murad_coder 13.11.2026
6. pentester_uz 14.11.2026
7. Doston Allayarov 14.11.2026
8. Xadicha_7 18.11.2026
9. rushana24 19.11.2026
10. Abdinazarova 19.11.2026