Display Wifi Password in Mac via Terminal
Given the complexity of some wi-fi network passwords combined with the general infrequency of entering them and that they’re typically saved on use, it’s not terribly unusual to forget what a specific routers wireless password is. Fortunately, if you’re on a Mac, there are a few ways to go about finding those lost or forgotten wi-fi router login details.
Open terminal, copy and paste the following command:
security find-generic-password -ga “wifi_name” | grep “password:”
Replace the wifi_name to the wireless access point name