import hashlib


def md5(file_name):
    """
    Find the MD5 hash of the given file.
    Taken from: http://stackoverflow.com/q/3431825

    :param file_name: The name of the file
    :return: The MD5 hash
    """
    hash_md5 = hashlib.md5()
    with open(file_name, "rb") as file:
        for chunk in iter(lambda: file.read(4096), b""):
            hash_md5.update(chunk)
    return hash_md5.hexdigest()