Aug-31-2020, 02:29 AM
I thought you were starting with
If you're starting with
b'B\xda\xed\xc5'
. That doesn't yield those binary strings.If you're starting with
01011111 00011000 01100101 00111010
, then yes you can just smash them together.>>> binary_string = "01011111 00011000 01100101 00111010" >>> int(binary_string.replace(" ", ""), 2) 1595434298