# Encrypt in PHP and decrypt in AS3?

**URL:** <https://forum.kirupa.com/t/encrypt-in-php-and-decrypt-in-as3/309669>\
**Category:** flash\
**Created:** [May 21, 2010, 5:26am UTC](https://forum.kirupa.com/t/encrypt-in-php-and-decrypt-in-as3/309669 "2010-05-21T05:26:45Z")\
**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:** [May 21, 2010, 5:26am UTC](https://forum.kirupa.com/t/encrypt-in-php-and-decrypt-in-as3/309669/1 "2010-05-21T05:26:45Z")

</div>

I am making an AIR project. In that the AIR application sends a request to a PHP script. The script returns an encrypted file. Then the Application decrypts it. How to do this?  
(I **don’t want** the process **to send the file unencrypted and the AIR to encrypt it** because I want the file link encrypted.)  
Also is there anyway like modifying the header of the file or something like that?
