For example, say I perform
base64.b64encode('Monday')
to obtain 'TW9uZGF5'. But when I want to access the 6 bits for each of the characters, I get something like this (the ASCII values for each of these characters):
[84 87 57 117 90 71 70 53]
when I want to obtain the 6 bit (values between 0 and 63] equivalents:
[19 22 61 46 25 6 5 57]
Is there a way to do so without looping through the list and manually changing them accordingly?
Thanks!