C++ how to make exe unreadable
Hi, i´ve problem with c++, every when user opens the compiled *.exe, he can (with good text editor) see all text strings, and without disassembler!! how can i make *.exe that cant be readable (text strings) by text editor or in a disassembler?? thanks in advance for help, i´m trying to program something as rooting challenge, i have 50% done, but if the strings are readable… you know :(
thanks :D EDIT: but… when i use XOR as encryption, i need to declare somewhere a key, and somewhere the words, too, i use example from older thread:
#include <string>
void xorPassword(std::string &oS, std::string &oK)
{
int i = -1;
while(++i<oS.length()) oS[i] ^= oK[i%oK.length()];
}
int main()
{
std::string myPass = "daniel";
std::string myKey = "key";
xorPassword(myPass, myKey);
std::cout << myPass << std::endl;
std::cin.get();
return 0;
}```
so when i´ll try to get input of value myPass, i´ve get the daniel, encrypted in XOR, but theres another daniel, used when declaring the string myPass... and this can be visible... so the strings still can be visible :( can someone give me an example how to a XOR for a lots of strings?? thanks
ok, but how can i cooperate "XORing program" with my own program, because the xor is unreadable characters, i probably need to store it in some string, and this string then give to my app… but how i get this work?? then i will HEX the XORed string (in my prog) and when i will need to use it, i will convert it from hex to xor and dexor it, i understand you but i dont know how to "transport" the xored string from separate app to my app :(
i´m finishing my converting app, but i have, i hope last, problem. i have done the encrypting to the xor, app asks me to enter string, and this string is encrypted into the xor, but how can i convert encrypted xor value, currently saved in string xor; to hex? xor is unreadable characters, arrows, smileys etc. etc. but not some alphabetical characters… is there any code that can convert string xor; into the hex? thanks