Im struggling with the following issue:
I have an array with the following binary data (after encryption):
data = '\x03×ÿ\x7f*J\x9aÖ¯AÀM|ü{R2+M°ø2\x83.\x1f@µ³U¡VT'
I want to base64 encode it.
When I do
binascii.b2a_base64(data)
I'm getting TypeError: a bytes-like object is required, not 'str'
I desperately need an advice how to deal with this kind of data. Please help!
Update: i fixed data type, ofcourse - my issue is related to the single string