This content has been marked as final. Show 4 replies
"Developer504" <email@example.com> wrote in message
> When deploying Flex apps as .SWF files for online or intranet use, what
> steps do you need to take to protect your code? How do you turn off 'view
Flex can be decompiled, but I'm not sure how useful what you get is.
View Source is not enabled by default, so just don't check it when you
export your release build.
Thanks, so basically your code is pretty secure by default... are there any other common practices I should know about?
Once thing your could do is this:
Create the target app as an SWF and encrypt it e.g. using RSA.
Then create another SWF, which reads the target SWF, encrypts it and loads it using SWFLoader.
Since the real logic is in the encrypted target app, things tend to be a bit more complex, since no one can simply put the target app into an SWF decompiler.
But, as Amy mentioned, Flex code can be decompiled - as e.g. Java code too.
BTW: ThoughtWorks did just this with the Java code of their Mingle solution [ http://studios.thoughtworks.com/mingle-project-intelligence Have a look at InfoQ to find a video, which explains their strategy.