title: Does python have an equivalent to Javascript's 'btoa'
body: <p>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: </p>
  
  <p><a href="https://docs.python.org/3.4/library/base64.html" rel="noreferrer">https://docs.python.org/3.4/library/base64.html</a></p>
  
  <p>Is there an exact equivalent to 'btoa' in python? </p>