Communication Encryption/Obfuscation

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… :smiley:

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