Let’s say I have a string containing hex value without the hex special char such as:
A = "B8B9 A5C1"
How can I convert this variable such as to have a new variable containing the hex value of the string as bytes like this:
B = b'xB8xB9xA5xC1'
Let’s say I have a string containing hex value without the hex special char such as:
A = "B8B9 A5C1"
How can I convert this variable such as to have a new variable containing the hex value of the string as bytes like this:
B = b'xB8xB9xA5xC1'