from typing import Any
import hashlib


def hashify(x: Any) -> str:
    """Generate a hash.

    Args:
        x:
            The object to hash. `x` will be converted to a string (`str(x)`), then
            hashed.

    Returns:
        The hash.
    """
    #return int(hashlib.sha256(str(x).encode('utf-8')).hexdigest(), 16)
    return hashlib.blake2b(str(x).encode('utf-8')).hexdigest()