Vyuziti ACPU modulu
This commit is contained in:
parent
1692a2adf4
commit
8e6d82107f
@ -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("");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user