WiFi-Passwort now generated internally and device-specific

This commit is contained in:
2024-06-04 22:10:22 +02:00
parent 3d090dceb1
commit 25f05ed832
6 changed files with 112 additions and 10 deletions

View File

@@ -33,4 +33,16 @@ bool validateWiFiString(char *string, size_t size);
*/
void sanitizeWiFiString(const char *input, char *buffer, size_t bufferSize);
/**
* @brief Generates a device-specific password based on a seed and the ESP8266 Chip ID.
*
* This function combines a given seed with the unique Chip ID of the ESP8266 device to create a device-specific password.
* The resulting password is stored in the provided character buffer.
*
* @param seed The seed string used for password generation. Should be up to 16 characters long.
* @param passwordBuffer The character buffer where the generated password will be stored.
* @param bufferLength The length of the password buffer. Should be large enough to hold the generated password and null terminator.
*/
void GenerateDeviceSpecificPassword(const char* seed, char* passwordBuffer, size_t bufferLength);
#endif // UTILITIES_H