from typing import Dict
from typing import Any
import hashlib
import json


def _compute_digest_params(parameters: Dict[Any, Any]) -> str:
    """Compute digest on parameters passed."""
    return hashlib.sha256(json.dumps(parameters, sort_keys=True).encode()).hexdigest()