Vyuziti ACPU modulu

This commit is contained in:
Pavel Brychta 2023-11-06 17:31:17 +01:00
parent 1692a2adf4
commit 8e6d82107f

View File

@ -1,7 +1,7 @@
#include "encString.hpp"
#include <base64.h>
#include <libb64/cdecode.h>
#include <cutils.hpp>
#include <ACPU.hpp>
bool isBase64(const char *p)
{
@ -30,8 +30,8 @@ void strEncode(String &str)
unsigned int enciphidx = 0;
char c;
unsigned int i;
uint32_t cid = ESP_getChipId();
uint32_t* pkey = (uint32_t *)&key[0];
uint32_t cid = ACPU::getChipId();
auto *pkey = (uint32_t *)&key[0];
uint8_t data[str.length()];
*pkey = cid;
@ -54,8 +54,8 @@ void strDecode(String &str)
const char *src = &str[0];
uint8_t key[4];
uint32_t cid = ESP_getChipId();
uint32_t* pkey = (uint32_t *)&key[0];
uint32_t cid = ACPU::getChipId();
auto *pkey = (uint32_t *)&key[0];
uint8_t data[str.length()];
String result = F("");