Skip to main content
Challenges Single-byte XOR
Cryptography Easy XOR basics Solves: 16

Single-byte XOR

Author: CyberSamSU
Points
12

XOR (exclusive OR) is an operation that compares two bits: if the bits are different, the result is 1; if they are the same, it is 0. In Python, it is written with the ^ symbol, for example 5 ^ 3 = 6.

In cryptography, XOR is very valuable because it is an operation that is its own inverse: (m ^ k) ^ k = m. That is, encryption and decryption consist of one and exactly the same operation — a separate "reverse algorithm" is not needed.

Each byte of the following message is XORed with the key 0x5a (90 in decimal). Restore the message to its original state:

181b0308150b21026a0805386b2805386e232e05386b366e3405386a2932366e
343e6b27

Python: bytes(b ^ 0x5a for b in bytes.fromhex(s)).decode()

Hints 2
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −1 pts Log in
Hint 2 −2 pts Log in
To submit a flag, log in.

First solvers

1. Лазиз 04.10.2026
2. Mirjaxon Qaxxarov 26.10.2026
3. Odam 04.11.2026
4. Doston Allayarov 12.11.2026
5. Jasmin Xuseinova 15.11.2026
6. Zulxumor 19.11.2026
7. rushana24 19.11.2026
8. Azizjon_20061609 19.11.2026
9. Komilovna 19.11.2026
10. hacker_777 19.11.2026