K
Krick
Are there any simple ways to hide configuration files in my java
application from curious users?
Assume that my program loads a plain ascii text "key" file on startup
(properties, XML, ini, etc...) that determines what features of the
program are "unlocked" and available to the user.
How can I hide this file?
So far, I can only come up with two options...
1) leave it all plain text put a CRC code in the file to detect
changes
2) scramble/encode/encrypt the file in some way
3) put the file inside a "key" jar.
#1 is pretty trivial to implement but probably gives away too much of
the inner workings of the program
#2 is harder to implement but probably more secure
#3 really isn't much of a deterrent unless there is a way to password
protect the jar. However, I don't think java is capable of opening
password protected jar files.
The bottom line is that the target audience for the application is not
a particular computer savvy bunch so I doubt that there will be much
"hacking" going on. I just want to make it a little more difficult to
hack than just opening the file in notepad and changing things.
....
Krick
application from curious users?
Assume that my program loads a plain ascii text "key" file on startup
(properties, XML, ini, etc...) that determines what features of the
program are "unlocked" and available to the user.
How can I hide this file?
So far, I can only come up with two options...
1) leave it all plain text put a CRC code in the file to detect
changes
2) scramble/encode/encrypt the file in some way
3) put the file inside a "key" jar.
#1 is pretty trivial to implement but probably gives away too much of
the inner workings of the program
#2 is harder to implement but probably more secure
#3 really isn't much of a deterrent unless there is a way to password
protect the jar. However, I don't think java is capable of opening
password protected jar files.
The bottom line is that the target audience for the application is not
a particular computer savvy bunch so I doubt that there will be much
"hacking" going on. I just want to make it a little more difficult to
hack than just opening the file in notepad and changing things.
....
Krick