def get_results_hash(self, data):
        """Generate hash digest.

        :data: Data to be hashed.
        :return: SHA512 hexdigest of data.
        """
        data = json.dumps(data, sort_keys=True)
        result = hashlib.sha512(data.encode())
        result_hash = result.hexdigest()
        return result_hash
Generate hash digest.

        :data: Data to be hashed.
        :return: SHA512 hexdigest of data.
        
Solutions/Vectra XDR/Data Connectors/VectraDataConnector/SharedCode/collector.py