^
used instead. A | B | Output |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
For longer binary numbers we XOR bit by bit: 0110 ^ 1010 = 1100
. We can XOR integers by first converting the integer from decimal to binary. We can XOR strings by first converting each character to the integer representing the Unicode character.
Given the string label
, XOR each character with the integer 13
. Convert these integers back to a string and submit the flag as crypto{new_string}
.
The Python pwntools
library has a convenient xor()
function that can XOR together data of different types and lengths. But first, you may want to implement your own function to solve this.
You must be logged in to submit your flag.
You are now level Current level