Search tutorials
How to protect ActionScript code from Flash decompilers?
To protect ActionScript code inside your SWF files you can use SWF Protector by DComSoft.Step 1.
Retrieve the installation package of SWF Protector from the official vendor`s website. Depending on OS type you use, download installation package for Windows, Mac OS X or Linux;Step 2.
Install SWF Protector following installation steps;Step 3.
After installation process is complete, launch SWF Protector;Step 4.
Choose one of the available protection modes: Simple or Advanced.SIMPLE MODE
When working in Simple mode, SWF Protector uses default protection algorithms, depending on the version of ActionScript in SWF file, both for standard and author scripts.In case when SWF file contains AS 2.0, "Mask script" and "Mix script" algorithms are applied.
"Mask script" is an effective method to conceal code and doesn't lead to file size increase.
"Mix script" mixes the source code. This method is rather effective, but leads to file size increase. That is why SWF Protector offers an option to set the intensity of this method. In Simple mode the intensity for AS 2.0 files is 50% by default.
For SWF files with AS 3.0 "Protect" and "Obfuscate" algorithms are used.
"Protect" method modifies the scripts in such way that SWF files can play in Flash player, but cannot be decompiled.
"Obfuscate" method renames variables and other objects. It doesn't protect file from decompilation, but makes the code impossible to use for further compilation.
Imgage 1 - Simple mode use in SWF Protector - reliable ActionScript obfuscator
Note 1: If "Mix script" is set to minimum, this protection method won't be applied.
Note 2: In order to decrease the resulting file size it is recommended not to use "Mix script" and methods for standard code. In this case however, the protection will be less reliable.
| » Level Advanced |
|
Added: 2010-04-01 Rating: 10 Votes: 3 |
| » Author |
| DComSoft evangelist SWF Protector 2.0 |
| » Download |
| Download the files used in this tutorial. |
| Download (271 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!