I am working with some base64 data. The expected output is 6 hex numbers like in the first example. However sometimes I get a newline character like in the second example (with 5 hex values)
base64.b64decode('DAAI9BTT')
b'\x0c\x00\x08\xf4\x14\xd3'
base64.b64decode('DAAKRRTT')
b'\x0c\x00\nE\x14\xd3'
I suspect I get the value 0A and this is converted to newline. When I trim the newline I miss a hex value