Implemented wifi credentials storage (#11)

* implemented wifi credentials storage

* encrypt wifi credentials
This commit is contained in:
Ken Van Hoeylandt
2024-01-14 18:46:04 +01:00
committed by GitHub
parent 069416eee5
commit ba1f81f599
20 changed files with 642 additions and 48 deletions
+19
View File
@@ -0,0 +1,19 @@
#pragma once
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* This is quicker than the m-string.h hashing, as the latter
* operates on raw memory blocks and thus a strlen() call is required first.
* @param[in] str the string to calculate the hash for
* @return the hash
*/
uint32_t tt_hash_string_djb2(const char* str);
#ifdef __cplusplus
}
#endif