def generate_wifi_dict(profiles: list) -> dict:
    """
    Generates a dictionary with the wifi name as key and the password as it's value
    """
    wifi_dict = {}

    if profiles is None:
        print(f'List is not defined.')
        return

    if len(profiles) == 0:
        print(f'List is empty.')
        return

    for ssid in profiles:
        if get_platform() == constants.MAC and len(profiles) > 1:
            password = "*****"
        else:
            password = get_password(ssid)
        
        wifi_dict[ssid] = password

    return wifi_dict

    Generates a dictionary with the wifi name as key and the password as it's value
    
wifi_password/utils.py