Java encyption for text files
for my project I've created a simple java game which has save/load functions. I plan for my save to pretty much just copy loads of variables from the game into a text file which can be read from the load.
However if someone accesses the text file then they can easily change the values which isn't really the point of save/load.
Is there any way to encrypt the text file or anything (it can be really simple) or any ideas of the best way to keep a basic security for the text file.
Thanks in advance.