import hashlib


def filehash(filepath):
    """Compute the hash of a file.

    Args:
        filepath (str): Path to the file.
    """
    hasher = hashlib.md5()
    with open(filepath, 'rb') as f:
        hasher.update(f.read())
    return hasher.hexdigest()