Compress string multiplatform

I need to be able to compress a string in iOS and uncompress it in Flash and vice versa.

Does anyone have any ideas on how to accomplish this?

Ended up with using DotNetZip’s ZLib for mobile versions and aszlib for Flash.