import base64


def _auth_header(username, password):
    """return the value part of an Authorization: header for basic auth with the specified username and password"""
    return b"Basic " + base64.b64encode(username + b":" + password)