Sous Linux

sudo cat /etc/NetworkManager/system-connections/NOM_DU_RESEAU_WIFI | grep psk=

Sous MacOS

security find-generic-password -wa NOM_DU_RESEAU_WIFI

Sous Windows

netsh wlan show profile NOM_DU_RESEAU_WIFI key=clear

Source