It is well known that literal strings can be retrieved from C++ compilates. For example, the output of
g++ a.cpp
on
int main(void)
{
const char * secret0 = "abcdefghijklmnopqrstuvwxyz";
const char secret1[] = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
};
return 0;
}
can be inspected with strings. The output contains the strings:
strings a.out | grep -i xyz
abcdefghijklmnopqrstuvwxyz
Is something like that possible for the hardcoded char
array {0x01, 0x02, 0x03, 0x04, ...}
as well?