import base64


def encode_basic_auth(username, password):
    """Returns the content of an Auth header given a username and password"""
    creds = username + ":" + password
    return b"Basic " + base64.b64encode(bytes(creds, "utf-8"))