Sorry, i did read that but it didn't come across as obvious to me that this could handle encryption. At a glance it sounded like it just connected to the first wifi found, with this method. But thanks, i see the wifi.db is created from running the script normally which will then be used for autolaunching.