import hashlib


def get_hash(path):
    """Returns the MD5 hash of a file"""

    with open(path, 'rb') as file:
        file_content = file.read()

    hasher = hashlib.md5()
    hasher.update(file_content)

    return hasher.hexdigest()