If you use a Wi-Fi network at home, work, or elsewhere and have saved passwords for various websites and services, it can be a hassle to remember them all. Fortunately, macOS has a built-in password manager that can help you keep track of all your passwords in one place. To use the password manager on macOS, first open System Preferences by clicking the Apple icon in the menu bar at the top of your screen and selecting System Preferences. Then click the Security & Privacy icon. In the Security & Privacy window, click the Accounts button and then click the Login Items tab. Under “Login Items”, select “Wi-Fi Passwords”. You will now see a list of all your saved Wi-Fi passwords. To add a new password, type it into the “New Password” field and then press Return or Enter. To delete a password, select it and press Delete. ..
Having a complex Wi-Fi password increases your security, as well as your likelihood to forget a long chain of letters and numbers. Fortunately, there are two quick methods for retrieving your home Wi-Fi password quickly and securely.
Keychain Access
Your Mac saves Wi-Fi passwords to your keychain, and you can see them in the Keychain Access application on your Mac.
To launch it, open Spotlight Search by clicking the magnifying glass in the top-right menu bar (or pressing Command + Space Bar). Type “Keychain Access” into the new search bar, and press Enter/Return.
In the Keychain Access window that appears, click “Passwords.”
Double-click the name of the Wi-Fi network. In the pop-up window, check the “Show Password” box. You might have to enter your Mac’s admin username and password to reveal the password. Remember that Keychain access also stores passwords for various apps, websites, and more.
Terminal
You can also do this from the Terminal.
To launch a Terminal window on your Mac, open Spotlight Search by clicking the magnifying glass in the top-right menu bar (or pressing Command + Space Bar). Type “Terminal” and press Enter. You can also launch the Terminal by opening Finder and navigating to Applications > Utilities > Terminal.
In this new window, type the following command, replacing “WIFI NAME” for the name of the Wi-Fi network:
security find-generic-password -ga WIFI NAME | grep “password:”
You might have to type your Mac’s admin username and password to reveal the password. Your Mac will display the password in the terminal in plain text.