import base64


def _get_creds_from_token(token):
    """
    Decode ecr token into username and password.
    """
    cred_string = base64.b64decode(token).decode("ascii")
    username, password = str(cred_string).split(":")
    return username, password