Hextroadinary
30 points Easy

Meet ROXy, a coder obsessed with being exclusively the worlds best hacker. She specializes in short cryptic hard to decipher secret codes. The below hex values for example, she did something with them to generate a secret code, can you figure out what? Your answer should start with 0x.

0xc4115 0x4cf8

Flag
Rating 4.45
5
4
3
2
1

Discussion

Python3: print(hex(0xc4115 ^ 0x4cf8)) CTFlearn{result}

0

That was fun!

0
Protected
0

Easy to solve with Python code

The ^ operator in Python represents the bitwise XOR operation. When applied to two numbers, it performs the XOR operation on each corresponding pair of bits. Here's how it works:

0xc4115 -> 11000001000100010101 (binary)

0x4cf8 -> 0100110011111000 (binary)

XOR ( ^ )

Result -> 10001101111010010101 (binary)

When you use the hex() function to print the result in hexadecimal format, it converts the binary result to its hexadecimal representation:

10001101111010010101 (binary) -> The Flag (hexadecimal)

So, print(hex(0xc4115 ^ 0x4cf8)) will output The Flag.

5
Protected
0
Protected
0

really tricky , but i like it .

0

The actual given code doesn't have CTFLEARN in it, it does begin with 0x. For the love of god, don't think it needed to have CTFLEARN and search for it using the answer for 10 minutes like I did. Godspeed, friends.

0
Protected
1

start with '0x' and followed by the scode

1

ROXy is using eXclusive OR (XOR) which is a boolean operator that is widely used in cryptography. XOR compares two input bits and generates one output bit. The logic is simple. If the bits are the same, the result is 0. If the bits are different, the result is 1.

The 0x prefix in 0xc4115 and 0x4cf8 means we are dealing with hexadecimal (base16).

When you calculate XOR at http://xor.pw/ for example, you get the hexadecimal output you’re looking for. This output is used as secret code to encrypt and decrypt data which is essentially a form of symmetric cryptography.

94

the webpage also strips the "0x" from the begining both inputs and outputs..

2