If a password is stored in the source file, programs like strings or objdump can easly read the strings and so the password.
My questione is about storing the data like this piece of code:
to_send[77] = data[0];
to_send[27] = data[1];
to_send[4] = data[2];
to_send[777] = data[3];
Where data is a string randomkey and to_send is the string to send.
In C++, is possible that an attacker can read easly this debugging the code like a string?
Or is more difficult?
If you want to make reverse engineering more difficult, you should use DES3 encription, or some similar approach. Any kind of hardcoded data can be “scrambled” that way. Of course, since the key would also be hardcoded, it can be cracked. But, there is no bullet proof solution. You can just play with the level of cracking complexity because once you will have raw decrypted data in the memory.