6. Bytes and Big Integers
Challenge Description:
My Solution:
message = "HELLO"
ascii_bytes = []
hex_bytes = []
base_16 = ""
base_10 = 0
for i in message:
ascii_bytes.append(ord(i))
for i in ascii_bytes:
hex_bytes.append(hex(i))
base_16 += "0x"
for i in hex_bytes:
base_16 += i.replace('0x', '')
base_10 = int(base_16.replace('0x', ''), 16)
print(message)
print(ascii_bytes)
print(hex_bytes)
print(base_16)
print(base_10)The Flag:
Last updated