I tried to save some important data into files.
For example, when the user purchases coins via IAP, I will write the coin amount into a file.
I already have encrypted these files I am using with a key, so they cannot be edited.
However, how to resolve this case?
(1) The user purchases some coins via IAP.
(2) The app writes the amount of coins into a file, abc.dat
(3) The user copies abc.dat out
(4) The user uses all coins
(5) The user copies the original abc.dat back so the user now has the previous amount of coins
Is there any other way to store this kind of data so that the user cannot cheat the system?
Thanks.