import hashlib


def hash_file(file_path):
    """
    Return the hash of a file.
    """
    md5 = hashlib.md5()
    with open(file_path, 'rb') as file:
        md5.update(file.read())
        
    return md5.hexdigest()