wpa_passphrase "testing" "testingpassword"network={
ssid="testing"
#psk="testingpassword"
psk=ae9400eac47807861c32f6b2d52434594fe1f1cbbd5ae0d89d5199ea5e4c79aa
}
I did a python script as this wikipedia article tells me how to compute wpa psk:
like this:
import hashlib, binascii
def wpa_psk(ssid, password):
dk = hashlib.pbkdf2_hmac('sha1', str.encode(password), str.encode(ssid), 4096)
return (binascii.hexlify(dk))
print((wpa_psk("testing", "testingpassword")))
Output: b'ae9400eac47807861c32f6b2d52434594fe1f1cb'
Which is part of the psk generated by the wpa_passphrase
tool. What's missing?