I'm a python newbie and trying to to some very simple task and encode a text to base64. I understand that I have to pad my string but the problem is the that padding is also been encoded..:/ this is my code:
import base64
b64Val = b64encode(b'this is a test')
print(b64Val)
and the result is:
b'dGhpcyBpcyBhIHRlc3Q='
My question is ofcource how to remove the b' and the quots from the generated code? i tried to use this thread Base64 encoding in Python 3 but apperantly its not working the same as I do get the entire string including the padding chars... going crazy here.. thanks!!