I have base64 encoded string sZCLmg== which is Note. What I am trying to do is to decode it with base64 and then use bytes negotiation to get string Note back.
import base64 encoded = 'sZCLmg==' #sZCLmg== Note data = base64.b64decode(encoded) print data mylist = [] mylist.append(data) #print mylist[0][0] bytes = mylist[0][0] print (bytes ^ 0xFF) but I am getting error: ValueError: invalid literal for int() with base 10: '\xb1' Any idea please what am I doing wrong to get original string Note?
Tm90ZQ==forNote