propagation_of_sound
February 23rd, 2010, 07:02 PM
Hiya,
I'm making a site in PHP, and in part of the site, the user downloads a cache file of their data. The next time the user visits the site, they can upload their cache and their data will be restored. However, I can suddenly detect that various nefarious users would try to meddle with their data for whatever reason. This cannot happen. So, I've decided to include some measures to stop this.
I cannot decide between
Creating a hash of the data that is permanently stored on the server for each cache
Or encrypting each cache to stop users meddling with it at all
What do you think is the best way? Should I do one, the other, both, something else?
Thanks :)
I'm making a site in PHP, and in part of the site, the user downloads a cache file of their data. The next time the user visits the site, they can upload their cache and their data will be restored. However, I can suddenly detect that various nefarious users would try to meddle with their data for whatever reason. This cannot happen. So, I've decided to include some measures to stop this.
I cannot decide between
Creating a hash of the data that is permanently stored on the server for each cache
Or encrypting each cache to stop users meddling with it at all
What do you think is the best way? Should I do one, the other, both, something else?
Thanks :)