Short example of how CRC32 and the MD5 plug work
You should already have CRC32 installed, and MD5 is here:
http://www.scirra.com/forum/viewtopic.php?f=16&t=1613&p=11290&hilit=md5#p11290
http://dl.dropbox.com/u/666516/hashtest.zip
To test it change the included text file, and run the cap again.
I'll add: probably the easiest way to get the hash to use for a comparison is to send it to the system clipboard, and paste it into your cap.
I can still read the original file, so what's the point?
You cant change it.
Can I change it in the runtime?
Edit: i think i see now how is this usefull. I can make my game database and then use this code so the player can't change the file, right?
Develop games in your browser. Powerful, performant & highly capable.
Yep that's the idea.
Which one is better to use?
Either one really.
The only difference I see is CRC32 seems to need a tick before you can read it.