Show Password for Used WiFi
This is a reference to this article (How to Find the Wi-Fi Password of your Current Network). Here I have listed the commands needed to show the passwords.
Window:
netsh wlan show profile name=wifi_name key=clear
MacOS:
security find-generic-password -ga wifi_name | grep password
Replace “wifi_name” with your wifi name that you are connected to.