# Encryption/Decryption between Flash & PHP

**URL:** <https://forum.kirupa.com/t/encryption-decryption-between-flash-php/290378>\
**Category:** programming\
**Created:** [June 13, 2009, 5:59pm UTC](https://forum.kirupa.com/t/encryption-decryption-between-flash-php/290378 "2009-06-13T17:59:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arundracula](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@arundracula](https://forum.kirupa.com/u/arundracula)\
**Post date:** [June 13, 2009, 5:59pm UTC](https://forum.kirupa.com/t/encryption-decryption-between-flash-php/290378/1 "2009-06-13T17:59:35Z")

</div>

Consider I made a game. Everytime someone plays it , it sends the highest score to a PHP script.

This high score update can be hacked if someone decompiles the actionscript and finds the variables and the query. So which type of encryption I have to use in this condition?  
And how?

What if can use Amayeta SWF encryption 5.0? Is that alone helps?

[  
Note:  
Earlier I tried something like this for an online flash with registration.  
Flash sends variables into a php script(this script was in another domain) which encrypts the data and return.  
Then flash will receive this encrypted data and send to the main php in the same domain.  
]
