# Discrypt the infu from the bikes.

• I have 100 whites. Here they are:

``````65 5A 44 5B 58 44 43 8A 4B 5A 4A 5B 41 4F 58 8A 42 4D 8A 40 4A 46 47 55 84
8A 68 8A 47 4F 45 5A 42 58 55 4D 4A 58 4F 41 56 47 51 5F 8A 40 8A 46 44 4E
4F 8A 45 44 5B 4F 41 4F 47 42 55 5F 8A 46 44 4C 4F 58 8A 5B 41 59 4C 42 58
56 8A 48 8A 40 4A 5D 4F 5B 58 48 4F 8A 59 40 5A 4A 52 4F 47 42 55 84 A7 A0
``````

Now you have them. They've got some sort of meaning. Presumably Russian. Baitas, as I understood, are overturned. What kind of coding is that it says and who the hell is that hero who can explain how to put them right in this case?

• A stone bracelet. In non-requirement to the mode of settlement, it may serve as a decoration.

You were absolutely right, text, obviously from the game:

The schief is elementary. Each line in window coding (1251) `XOR` c `0xAA`

It wasn't hard to guess, by the frequency of the symbols, we found that most of the time was 8A, we assumed it was a gap. I went on to point out that it's practically the only white that's more than 0x80, the other baytes are much smaller. As we know, the smallest code of 0x20 has broken down, Latin symbols start from 0x41, and the Russians in the second half of the table, after 0x80. All large numbers have become small, and the small number on the other hand is a clear sign of XOR surgery, especially as it is commonly used in cryptography, i.e. easily reversible, repetition. `0x8A xor 0x20 = 0xAA` - Here's our key. I've done a little walk that counted your six-primary symbol codes, made numbers and carried out them. `xor 0xAA`♪ The text is in front of us.

Here. `perl` My program looked like:

``````#!/usr/bin/perl
\$a=<>; // Читаем строку из входного файла
@b=split(/ /,\$a); // Делаем массив hex кодов, они через проблел
foreach \$a (@b) // бежим по массиву
{
\$n=hex(\$a) ^ 0xAA;  // Делаем нормальное число из шестнадцетиричного и XOR 0xAA
print(chr(\$n)); // Печатаем символ с этим кодом
}
``````

2

2

2

2

2

2

2

2

2

2

2

2

2

2

2