I'm using the function below to do the conversion from byte array
to string
, but when parsing the compiled code I notice that string
is shown clearly ( using a hex editor ) , which I do not want.
char arr_code[] = {79, 99, 117, 108, 116, 97, 100, 111, 32, 110, 111, 32, 99, 195, 179, 100, 105, 103, 111, 32, 99, 111, 109, 112, 105, 108, 97, 100, 111};
char *byte_arr = (char*)malloc(sizeof(char));
memcpy(byte_arr, arr_code, sizeof arr_code);
char *str_code = byte_arr;
In the case of string
of byte array
is Ocultado no código compilado
and is exposed in compiled code even though it is not clearly defined in script C, why does this occur?
How can I get the code to be compiled without the result of byte array
being exposed?