Retrieving Wi-Fi Passwords on Android
As we will have to open a system file on Android, we cannot use the traditional file explorer that comes pre-installed on the device. We will use ES File Explorer for the task. We have already seen a guide on how we can use ES File Explorer to view and edit system files on Android. Please have a look at the it if you are unaware of the process.
Now move up a folder (to the root folder) in ES File Explorer and you will see a directory called data. Navigate to data/misc/wifi folder and you will find a file named wpa_supplicant.conf. Tap on the file to open it up and make sure you use ES File Explorer ‘s built-in text/HTML viewer for the task.
In the file you should be able to see the network SSID and their passwords next to it. You can now search for the SSID (network name) and note down the password next to it and close the file.
Retrieving Wi-Fi Passwords on iOS
If you have jailbroken your device, install a nifty tweak called NetworkList from Cydia. After you have installed the tweak, all you need to do is go to the Wi-Fi settings of your device and you will see a new button named Network Passwords in there. In iOS 7 it will be shown as Known Networks. Just tap on it and you will be able to see all the Wi-Fi passwords that are stored on your device.
Network list is very basic and only displays the passwords. You don’t even have the permission to select and copy it to your clipboard to send it as a text message. You just need to use the conventional method of a pen and a paper, and write it down (or memorize it).