import base64


def base_64_encode(key, secret):
    """encodes key and secret in base 64 for the auth credential"""
    conversion_string = "{}:{}".format(key, secret).encode('ascii')
    auth_credential = base64.b64encode(conversion_string)
    auth_credential = auth_credential.decode()
    return auth_credential