Challenges
XOR and base64 layer
Cryptography
Medium
XOR and encoding layers
Solves: 7
XOR and base64 layer
Author: CyberSamSU
Points
30
In practice, XOR is rarely encountered alone — an encoding layer is usually added on top of it, because the XOR result often consists of non-printable bytes and cannot be transmitted as text.
Three layers are used here:
- the flag is encoded with base64;
- the resulting ASCII string is XORed with a single unknown byte;
- the result is encoded with base64 again.
Unwrap the layers in reverse order:
ZlxxbWJcDmVSBlBAYlsOXnl/ek15XWVRVGNlB1VzZUN6YQ9AbgVQT1VwZk9RZgoK
When you unwrap the second layer, the result should again look like a base64 string — that is, it should consist only of A-Z a-z 0-9 + / = characters. This is the criterion for recognizing the correct key.
To submit a flag, log in.