Having a complex WiFi password increases your security, as well as your chance to forget a long string of letters and numbers. Fortunately, there are two quick methods to retrieve your WiFi home password quickly and securely.
Your Mac stores Wi-Fi passwords in your keychain and you can see them in the Keychain Access application on your Mac.
To start it, open Spotlight Search by clicking on the magnifying glass in the top right menu bar (or on Command + space bar). Type "Keychain Access" in the new search bar and press Enter / Return.
In the Keychain Access window, click on "Passwords".
Double-click on the Wi-Fi network name. Check the "Show password" box in the pop-up window. You may need to enter the administrator user name and password of your Mac to reveal the password. Remember that Keychain access also stores passwords for different apps, websites and more.
You can also do this from the Terminal.
To start a Terminal window on your Mac, open Spotlight Search by clicking on the magnifying glass in the top right menu bar (or by pressing Command + spacebar). Type "Terminal" and press Enter. You can also start the Terminal by opening Finder and going to Applications> Utilities> Terminal.
In this new window, enter the following command, replacing "WIFI NAME" for the name of the Wi-Fi network:
security find-generic-password-go WIFI NAME | grep "password:"
You may need to type the admin username and password of your Mac to reveal the password. Your Mac displays the password in plain text in the terminal.