vintage_net v0.2.1 VintageNet.WiFi.WPA2
WPA2 preshared key calculations
WPA2 doesn't use passphrases directly, but instead hashes them with the SSID and uses the result for the network key. The algorithm that runs the hash takes some time so it's useful to compute the PSK from the passphrase once rather than specifying it each time.
Link to this section Summary
Functions
Convert a WiFi WPA2 passphrase into a PSK
Link to this section Types
Link to this type
psk()
psk()
psk() :: <<_::512>>
psk() :: <<_::512>>
A WPA2 preshared key
Link to this section Functions
Link to this function
to_psk(ssid, psk)
Convert a WiFi WPA2 passphrase into a PSK
If a passphrase looks like a PSK, then it's assumed that it already is a PSK and is passed through.
See IEEE Std 802.11i-2004 Appendix H.4 for the algorithm.