I'm trying to find an exact equivalent to javascript's function 'btoa', as I want to encode a password as base64. It appears that there are many options however, as listed here:
https://docs.python.org/3.4/library/base64.html
Is there an exact equivalent to 'btoa' in python?