import hashlib


def verifyhash_password_hashlib(password: str, hash: str) -> bool:
    """check if password is correct using hashlib

    Args:
        password (str): user password
        hash (str): user password encrypted

    Returns:
        bool: True if correct password else False
    """
    return hashlib.md5(password.encode('utf-8')).hexdigest() == hash