I have a game mod DLL that uses strings such as the address of my master multiplayer server for the game.
One of these strings is the username and password to the system, of which can be found by opening the DLL in Notepad (example, doesn't contain the username or password for the system.) : http://puu.sh/cUj8L/1ba1cdc423.pn).
I've looked at encrypting the strings then inserting them in the DLL, but this encryption can easily be reversed, thus rendering it useless.
What's the best foolproof way of hiding these strings so they cannot be viewed using Notepad or a DLL disassembler?
I've looked at encrypting the strings then inserting them in the DLL, but this encryption can easily be reversed, thus rendering it useless.
They're not useless in an executable file because it's difficult to isolate them as strings for an offline brute force attack.
In my experience as simple XOR with a removed null terminator is sufficient. Of course it depends on the importance of the information you wish to encode.