Hold on the Option
key and then click on the WiFi menu icon from the Menu Bar in you Mac.
Using the following command to get your WiFi info:
security find-generic-password -ga <wifi-name>
Once you execute the command, the system will show a promotion that warns you need to type the User Name
and Password
of your machine.
After you finish inputting and click the Allow
button, you will get the detailed infomation about your WiFi.
For example:
$ security find-generic-password -ga Karmasgame
keychain: "/Library/Keychains/System.keychain"
version: 256
class: "genp"
attributes:
0x00000007 <blob>="Karmasgame"
0x00000008 <blob>=<NULL>
"acct"<blob>="Karmasgame"
"cdat"<timedate>=0x32303232303132343038343431305A00 "20220124084410Z\000"
"crtr"<uint32>=<NULL>
"cusi"<sint32>=<NULL>
"desc"<blob>="AirPort network password"
"gena"<blob>=<NULL>
"icmt"<blob>=<NULL>
"invi"<sint32>=<NULL>
"mdat"<timedate>=0x32303232303132343038343431305A00 "20220124084410Z\000"
"nega"<sint32>=<NULL>
"prot"<blob>=<NULL>
"scrp"<sint32>=<NULL>
"svce"<blob>="AirPort"
"type"<uint32>=<NULL>
password: "Pw@MyHome2022"
Generate a url which contains the WIFI information , so suers can follow links from QR codes, to join networks without having to manually enter the data.
- Common format:
WIFI:S:<SSID>;T:<WEP|WPA|blank>;P:<PASSWORD>;H:<true|false|blank>;
- Sample
WIFI:S:<wifi-name>;T:WPA;P:<wifi-password>;;