# Communication Encryption/Obfuscation

**URL:** <https://forum.kirupa.com/t/communication-encryption-obfuscation/235603>\
**Category:** flash\
**Created:** [August 13, 2007, 11:03am UTC](https://forum.kirupa.com/t/communication-encryption-obfuscation/235603 "2007-08-13T11:03:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iceflyin](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@iceflyin](https://forum.kirupa.com/u/iceflyin)\
**Post date:** [August 13, 2007, 11:03am UTC](https://forum.kirupa.com/t/communication-encryption-obfuscation/235603/1 "2007-08-13T11:03:15Z")

</div>

I am trying to figure out a solution to add a tiny bit of security to a Flash chat.

Does anyone know of any methods of Obfuscating or encrypting Flash to Gateway(amfPHP) messages?

My current idea is this…

User clicks button to create chatroom in Flash \> Flash sends message to gateway \> remote object is created and a unique key is randomly generated that is sent back for flash, and a identical mathematical formula function is used by flash and php to scramble and unscramble the text in chat messages.

Not very secure at all, but prevents casual prying eyes… 😃

There must be some known functions for doing this that could be re-created in ActionScript.
