VintageNetWiFi.WPA2.to_psk
You're seeing just the function
to_psk
, go back to VintageNetWiFi.WPA2 module for more information.
Specs
to_psk(String.t(), psk() | String.t()) :: {:ok, psk()} | {:error, invalid_ssid_error() | invalid_passphrase_error()}
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.