2023-11-06, 12:51 AM
I noticed that the network configuration tool puts an unhased password for the Wifi network in the wpa_supplicant.conf file
I think that it is better to use an hashed psk. The syntax is easy: the hashed password does not have "quotes".
The Python code to calculate the hashed psk should be:
import hashlib, binascii
def wpa_psk(ssid, password):
dk = hashlib.pbkdf2_hmac('sha1', str.encode(password), str.encode(ssid), 4096, 32)
return (binascii.hexlify(dk))
Sorry but I was not able to find in OpenPlotter GitHub sources the code to modify and to pull a request...
Therefore I use a Feature Request!
Thanks for your attention
I think that it is better to use an hashed psk. The syntax is easy: the hashed password does not have "quotes".
The Python code to calculate the hashed psk should be:
import hashlib, binascii
def wpa_psk(ssid, password):
dk = hashlib.pbkdf2_hmac('sha1', str.encode(password), str.encode(ssid), 4096, 32)
return (binascii.hexlify(dk))
Sorry but I was not able to find in OpenPlotter GitHub sources the code to modify and to pull a request...
Therefore I use a Feature Request!
Thanks for your attention