Thanks Danny!
There is a prize involved, but no money. I mean users do not pay for this.
I'll take a look at the SHA-1 algorithm.
Of course hackers will be able to find the encryption string by
"decompiling" the SWF.
So I might need some code obfuscation, which I'm not a big fan of.
Thanks,
JulianG
Danny Kodicek wrote:
Depending on how secure you need it to be (ie, whether there's money or a
prize involved), a simple solution is to use SHA-1 (I think Branden Hall
made a SHA-1 encryption algorithm a while back, and it's standard in PHP).
Have a long key string which both your Flash file and the PHP page know,
then append the score to this key string and hash it. Send the score in
plain and the hash alongside, then your server script can authenticate the
score with the hash to make sure it's the right answer. This will stop the
casual hacker.
Danny
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com