Except pre-shared keys we have an option to make it secure our network credential(password).
I'm using wpa_supplicant(version-2.7) to interact with AP, once the connection established the network credential will be stored in the wpa_supplicant.conf file like given below.
Method1: to store psk values
network={
ssid="network_name"
scan_ssid=1
psk=psk_key_values
key_mgmt=WPA-PSK
}
Method2: to store password values in plaintext format
network={
ssid="network_name"
scan_ssid=1
psk="password"
key_mgmt=WPA-PSK
}
The method1 and method2 look like the similar, for example if we use method1 the supplicant will drive the key for encryption purpose, if the hacker know the password/psk key values it's not secure.
So, we have any standard mechanism are there to make it secure the network credentials(password). If you guys know anything please give your suggestion.