import hashlib


def hash_password_hashlib(password: str) -> str:
    """encrypt user password using hashlib

    Args:
        password (str): user password

    Returns:
        str: password encrypted
    """
    return hashlib.md5(password.encode('utf-8')).hexdigest()