import hashlib


def get_md5(file: str) -> str:
    """
    Get the md5code of file.

    :param file: The path of file.
    :return: The md5code of file
    """
    m = hashlib.md5()
    with open(file, 'rb') as f:
        for line in f:
            m.update(line)
    md5code = m.hexdigest()
    return md5code