
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.
拥有复杂的Wi-Fi密码可以提高安全性,并有可能忘记一长串字母和数字。 幸运的是,有两种快速方法可以快速安全地检索您的家庭Wi-Fi密码。
钥匙串访问 (Keychain Access)
Your Mac saves Wi-Fi passwords to your keychain, and you can see them in the Keychain Access application on your Mac.
Mac将Wi-Fi密码保存到钥匙串中,您可以在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.
要启动它,请通过单击右上方菜单栏中的放大镜(或按Command +空格键)打开Spotlight搜索。 在新的搜索栏中输入“钥匙串访问”,然后按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.
双击Wi-Fi网络的名称。 在弹出窗口中,选中“显示密码”框。 您可能需要输入Mac的管理员用户名和密码才能显示密码。 请记住,钥匙串访问还会存储各种应用程序,网站等的密码。

终奌站 (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.
要在Mac上启动“终端”窗口,请通过单击右上方菜单栏中的放大镜(或按Command +空格键)打开Spotlight搜索。 输入“ Terminal”,然后按Enter。 您也可以通过打开Finder并导航到“应用程序”>“实用程序”>“终端”来启动终端。
In this new window, type the following command, replacing “WIFI NAME” for the name of the Wi-Fi network:
在这个新窗口中,键入以下命令,将“ WIFI NAME”替换为Wi-Fi网络的名称:
security find-generic-password -ga WIFI NAME | grep “password:”
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.
您可能必须输入Mac的管理员用户名和密码才能显示密码。 Mac将在终端中以纯文本形式显示密码。
翻译自: https://www.howtogeek.com/656994/how-to-see-all-your-saved-wi-fi-passwords-on-macos/