import hashlib


def md5_hash(filename: str, path: str) -> str:
    """Calculates the md5 hash of an input file.

    Args:
        filename: name of input file
        path: path of input file

    Returns:
        str containing 128-bit md5-hash
    """
    with open(path + filename, 'rb') as f:
        bytes = f.read()
        hash_str = hashlib.md5(bytes).hexdigest()

    return hash_str