Is there a way to save a static password in a way that is hard to find in a compiled application?
Two different applications are needed for this. One of them is a lightweight FTP client for Windows, which connects to only one hard-coded server. Another is the Objective-C game, which allows users to create level packs and use passwords to save them. They can be played without a password, but not opened in the level editor. I encrypt passwords using AES, but I need to somehow save the password for decryption.
The only idea I have found so far is to save the password not as one line, but as several lines. This may work well for the game, because I can just plug in the lines that already exist. Or I could save it as a long line and use a secret algorithm to get the password from this line, although this begs the question: can C applications on Windows or Cocoa applications on OS X just decompile to find this algorithm?
Are there any safer ways to do this?
source share