WeChall - CGX#3 - Binary Encoding
Challenge
The page shows a random 8-bit binary string and asks for its decimal equivalent:
Please convert this binary data to a decimal number. 01100101
The number is randomly generated and bound to your session.
Solution
Convert with Python or JavaScript:
1 | int('01100101', 2) |
1 | > parseInt('01100101', 2) |
Manual: each bit position is a power of 2, from right (2^0) to left
(2^7). 01100101 = 64+32+4+1 = 101.
Since the challenge is session-bound, you'll see a different number each visit — the method stays the same.