mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
Ota hashed password (#2292)
* Add option to give ArduinoOTA a hashed value of the password hashed password can be safely stored on flash * Switch to separate method to accept the hash * Calculate the hash of plain passwords at setup * missed line * Remove underscores from local variable
This commit is contained in:
committed by
Ivan Grokhotkov
parent
c4f9f102ce
commit
e83f30a78d
@ -24,7 +24,11 @@ void setup() {
|
||||
// ArduinoOTA.setHostname("myesp8266");
|
||||
|
||||
// No authentication by default
|
||||
// ArduinoOTA.setPassword((const char *)"123");
|
||||
// ArduinoOTA.setPassword("admin");
|
||||
|
||||
// Password can be set with it's md5 value as well
|
||||
// MD5(admin) = 21232f297a57a5a743894a0e4a801fc3
|
||||
// ArduinoOTA.setPasswordHash("21232f297a57a5a743894a0e4a801fc3");
|
||||
|
||||
ArduinoOTA.onStart([]() {
|
||||
String type;
|
||||
|
Reference in New Issue
Block a user