What secure ways do I have for obtaining an host address?Yes, but only if a person has to provide the password to decrypt the file every time the program starts. Otherwise, you have to hardcode the password in the app, and if you're going to do that, you might as well just hardcode the password.
Encrypt in a text file and read from it?
Nuno Miguel Santos wrote:Perhaps you could use some weak encryption on the file just so the host name is not plain text. Creating grand protection schemes is futile so don't waste your time there, but at least do the minimal effort to hide your stuff :)
EJP, so I could just read it from a file (in case the server changes address) and use a security manager? That would be enough?