Adafruit_Wippersnapper_Arduino icon indicating copy to clipboard operation
Adafruit_Wippersnapper_Arduino copied to clipboard

Support WPA2-PSK

Open brentru opened this issue 9 months ago • 4 comments

It may be possible to do this through specifying a key_mgmt field like the Raspberry Pi wifi_supplicant.conf file.

key_mgmt: Specifies the key management protocol, which is typically WPA-PSK for WPA2 networks.

network={
    ssid="YourNetworkSSID"
    psk="YourNetworkPassword"
    key_mgmt=WPA-PSK
}

We do need to check what encryption method is used for the psk field.

brentru avatar Jun 06 '25 18:06 brentru

We also need to check if this is possible with arduino-esp32 or the ESP-IDF

brentru avatar Jun 06 '25 18:06 brentru

Additionally, we can use setting key_mgmt=NONE for networks without a psk

brentru avatar Jun 06 '25 18:06 brentru

https://linux.die.net/man/8/wpa_passphrase https://www.rfc-editor.org/rfc/rfc2898#appendix-A.2 https://github.com/aosp-mirror/platform_external_wpa_supplicant/blob/master/wpa_passphrase.c

brentru avatar Jun 06 '25 18:06 brentru

I'm pretty sure it's not really encrypted, more like obfuscated, using a salted hash based on some machine salt. The PSK / hash actually equates to the real password, you can literally type it in on your phone to join the same network.

tyeth avatar Jun 06 '25 19:06 tyeth