views:

22

answers:

1

I'm trying to send encrypted data from a flash ( Action Script 2.0) to decrypt it in C#

So far I've found this post (Link opens in Chrome, Opera and Safari. Doesn't work in IE nor Firefox) There's also this question: http://stackoverflow.com/questions/3308781/encrypt-in-actionscript3-and-decrypt-in-asp-net-c

But both only work in ActionScript 3

Do you know an API to do this on Action Script 2 ?

A: 

It would be useful to know why/what you intend to encypt. I'm fairly confident that you're probably barking up the wrong tree. It's common knowlege that ActionScript is very easily decompiled and your encryption efforts will be wide open for all to see. While this may not be a problem, if you really need encryption and end-to-end security, use HTTPS, not some home-brewed means of securely communicating data.

spender
We are using [SWF Encrypt](http://www.amayeta.com/software/swfencrypt/) to obfuscate the .swf. Is it enough to protect the potential symmetric key ?
Carlos Muñoz
No. Most definitely not. If the client holds the key to decrypt the data, then this is bad. By definition, swf encrypt is actually only obfuscation. The client needs to know how to decrypt the swf to run it. It would be easy to get the key and decrypt the data. If you must go this route, public key encryption is the only sane way.
spender