This question already has an answer here:
When I connect to a Wi-Fi network I know the password of, how does the device send the password?
Specifically, what prevents the network next door from catching that message and thereby learning the password?
The Wi-Fi traffic itself is encrypted with WPA2, but that will only start after you've authenticated yourself to the access point, right?
I suppose it is possible to ask the router for it's public key, and encrypting the password plus a timestamp (or something) and then send it to router. However, I haven't been able to find anything on it, mostly because my search results for e.g. "how does wifi connection process work" get flooded with clueless internet users asking why their wifi connection doesn't work... And then on top of that, I find this article stating:
There’s no sort of password hash that your Android phone could send your router to authenticate besides the password itself.
But there must be something I'm missing...