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
To submit a flag, log in.