MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / transform_data

Function transform_data

core/src/renderer/v8_datastore.cc:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "v8_wrapper.h"
3
4static void transform_data(void *data, size_t length)
5{
6 static const char key[] = "A5dgY6lz9fpG9kGNiH1mZ";
7 const int key_length = sizeof(key) - 1;
8
9 uint8_t *buffer = reinterpret_cast<uint8_t *>(data);
10
11 for (size_t i = 0; i < length; i++)
12 {
13 buffer[i] ^= static_cast<uint8_t>(key[i % key_length]);
14 }
15}
16
17static void load_datastore(cef_string_t *json)
18{

Callers 2

load_datastoreFunction · 0.85
save_datastoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected