So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Davidthe 16
#63685 Hello! I'm new to ESP8266!
I'm using NodeMCU 0.9.

When putting the device in AP mode, is there any way to get whatever the user typed when logging in (the WPA2 password to the wifi, not a captive portal password) to the AP?

I think it ought to be possible, because the device is getting the input from whomever is trying to log in and it needs to check out if it maches the login password, so there should be a way to get whatever he typed right?

Or do I need to dig in the firmware and change it so it'll work?
User avatar
By jeffas
#63907 I don't know the details of how WiFi authentication works, but any secure system worthy of the name would not send plain passwords between nodes. Most likely, the AP sends a value to the connecting client which the client uses to encrypt the password entered by the user. The AP will compare the encrypted value against the value that it has obtained itself by encrypting the known WiFi password. If the client has used the wrong password, these values will not match, but the encryption is one-way, so the AP cannot recover the wrong password.