Install DroidKit on your pc and login it with your Google account that you use on your smartphone where you saved your wifi password. Now synced the DroidKit with google account. You will see a google backup option select it and backup your saved wifi key.