Hackvent_2018/Day 5/decode.py
Roman Hergenreder ab0b694600 Progress
2018-12-05 12:58:22 +01:00

11 lines
265 B
Python

#!/usr/bin/python
in1 = "10:a2:a3:2d:60:2e:43:0f:9d:a1:12:5b:fa:1c:36:4e:6c:e2:de:e0:57:3d:8a:69:5a:24:fc:e8:f6:f3:f5:ce"
in1_bytes = [int(x, 16) for x in in1.split(":")]
print(in1_bytes)
print(len(in1_bytes))
in2 = in1.replace(":", "")
d = int(in2, 16)
print(d)