Search code examples
apache-flexactionscript-3flashdecompiler

ActionScript Protect .swf/.swc Files From Decompilation?


it is possible to protect a .swf file from decompilation?

i've been reading about compiling class libraries in a .swc file for distribution without revealing the code - possibly selling it. however, there are .swf decompilers you can use to expose the code, and a .swc file is simply a .zip archive, so changing myswc.swc to myswc.zip will reveal the .swf files of the library.

just curious, mostly.


Solution

  • You can't. Don't believe those swf protector/encryptors. Both the content of a swf and a swc need to be readable by the AVM2 so it can't be compressed or encrypted or anything. Bottom line is that you can't really protect your as3 code from being reverse engineered.