md5_data#

mbgdml.utils.md5_data(data, keys)[source]#

Creates MD5 hash for a set of data.

Parameters:
  • data (dict) – Any supported mbGDML data type as a dictionary. Includes structure sets, data sets, and models.

  • keys (list of str) – List of keys in data to include in the MD5 hash.

Returns:

MD5 hash of the data.

Return type:

str

Notes

We sort keys because the MD5 hash depends on the order we digest the data.