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