import json
import hashlib


def crypto_hash(*args):
    """
    crypto_hash encrypts the provided data into a sha256 hash
    """

    args_string = sorted(map(lambda data: json.dumps(data), args))
    concatenated = "".join(args_string)

    return hashlib.sha256(concatenated.encode("utf-8")).hexdigest()