If you have an item in your keychain having the same name as the SSID it will not show you the SSID password, but the one from that item.
To enforce returning the wifi password, one must add the -D 'AirPort network password' to /usr/bin/security (ref: http://apple.stackexchange.com/a/64678).
If you have an item in your keychain having the same name as the SSID it will not show you the SSID password, but the one from that item.
To enforce returning the wifi password, one must add the
-D 'AirPort network password'
to/usr/bin/security
(ref: http://apple.stackexchange.com/a/64678).