SyntaxFix
Write A Post
Hire A Developer
Questions
It turns out that this is important enough to get it's own module...
import base64 base64.b64encode(b'your name') # b'eW91ciBuYW1l' base64.b64encode('your name'.encode('ascii')) # b'eW91ciBuYW1l'