(username, password)
return authstr
Returns a Basic Auth string.
Returns a Basic Auth string.
Returns a Basic Auth string .
def _basic_auth_str(username, password):
    """Returns a Basic Auth string."""

    authstr = 'Basic ' + to_native_string(
        b64encode(('%s:%s' % (username, password)).encode('latin1')).strip()
    )

    return authstr
def _basic_auth_str ( username , password ) : authstr = 'Basic ' + to_native_string ( b64encode ( ( '%s:%s' % ( username , password ) ) . encode ( 'latin1' ) ) . strip ( ) ) return authstr