def encode64(content, encoding='utf-8'):
 return b64encode(content.encode(encoding)).decode(encoding)

def encode64 ( content , encoding = 'utf-8' ) : return b64encode ( content . encode ( encoding ) ) . decode ( encoding )
encode some content in base64 .