Key used twice
In stream ciphers, the text is XORed with a random keystream: c = m ^ K. If K is truly random and is used only once, this is the unbreakable Vernam cipher (one-time pad).
But if that K is used a second time, the whole protection collapses. Because c1 ^ c2 = (m1 ^ K) ^ (m2 ^ K) = m1 ^ m2 — the key cancels out and we are left with the XOR of the two plaintexts.
Our server sends a message according to a template and pads each message with spaces to 95 bytes. An employee mistakenly encrypted two different messages with a single keystream. Both ciphertexts are in the attached file: xabarlar.txt.
The first message is one of the following six templates (you will determine exactly which one it is yourself):
1. [CyberSamSU] Tizimga kirish muvaffaqiyatli amalga oshirildi.
2. [CyberSamSU] Parolingiz muddati tugadi, iltimos uni yangilang.
3. [CyberSamSU] Yangi qurilmadan kirish aniqlandi, tekshirib ko'ring.
4. [CyberSamSU] Musobaqa reytingi yangilandi, natijangizni ko'ring.
5. [CyberSamSU] Xavfsizlik bo'limi: kalitni ikki marta ishlatmang!
6. [CyberSamSU] Server texnik xizmat uchun vaqtincha to'xtatiladi.
The second message is secret — there is a flag inside it. Decrypt it.