I\'m trying to make a HTTPS connection in Python3 and when I try to encode my username and password the base64 encodebytes method returns the encoded v
base64
encodebytes
for python3 use:-
binascii.b2a_base64(cipher_text, newline=False)
for python2 use:
binascii.b2a_base64(cipher_text)[:-1]