import hashlib


def hash_dlp_entry(row):
    """Utility function to return the MD5 hash of a given dlp entry, used for baselining."""
    hasher = hashlib.md5()
    hasher.update('{}:{}{}:{}'.format(
        row['MD5_Checksum'], row['Application_Directory'], row['Application'], row['Product_Version']).encode())
    return hasher.hexdigest()