Challenges
Known plaintext
Cryptography
Medium
Known-plaintext attack
Solves: 6
Known plaintext
Author: CyberSamSU
Points
35
A known-plaintext attack is a situation where we have the ciphertext along with the original form of a part of it. For XOR, this is fatal, because ochiq_matn ^ shifrmatn = kalit.
The letter always starts with the same greeting. We know that the first 25 characters of the message are exactly this:
Hurmatli talaba, quyidagi
Ciphertext (hex):
25141919001601084b00000e0c030a5841131818021000050441131503031f41
181d1b050c410615191118124b00001b140e1918000c090845542a0301081f54
100b1e100a5417034d031e00140c4d0c0a000f420f0e4c0d0d030f411f150a10
021307150f03090845542303141304055b422f2032262e3316395b263e0f590d
1e193e520e095a053e0f5915052b0a170e095a09412d00000f55
When you XOR the known part, you get not the key itself, but the repeating keystream. By looking at it, you will immediately notice the key length.
To submit a flag, log in.