import getpass


def ask_password(prompt="Password : ", forbiddens=[]):
    """Prompt the user for a password without echoing
    
    Keyword Arguments:
        prompt {str} -- the question message (default: {"Password : "})
        forbiddens {list} -- the list of bad passwords (default: {[]})
    
    Returns:
        str -- the appropriate input password
    """
    password = getpass.getpass(prompt)
    if password not in forbiddens:
        return password
    else:
        return ask_password(prompt, forbiddens)