Hi Zilik,

I can't think of an easy way to encrypt the whole file, but you definitely could use obfuscated keys and encrypted values. There are many crypto libs for Java, so you really can take your pick of how to encrypt the values.

Now - you would have to hard-code the decryption key into the app, so if someone took the time to reverse compile your app they could get the key and hence be able to edit the values anyway.

I guess if you REALLY want to go all out you could use asymmetric encryption, encrypting the vars with a private key that you never ever store on the system where the app will be running, and then hard-coding the public key into the app. This would mean that someone who reverse-compiled the app could read the settings in the file, but not change them.

Hope that's of some use to you,

Bart.