Hello,
I'm trying to find a way, to programmatically get the password, of current WiFi connection, so I could use the password to connect another device to the same WiFi.
One of the possibilities that I've found was using a terminal command: "security find-generic-password -ga TypeInYourWiFiNameHere | grep “password:”".
Is there any other, more appropriate way to do this in Objective C/C++? Asking user for permission is completely fine and understandable.