Protect ActionScript from Flash decompilers using SWF Protector

Ranked #6,640 in Computers & Electronics, #129,067 overall

ActionScript code Obfuscation, Protection and Encyption using SWF Protector

Sustain losses because source code of your Flash files is stolen? There can be nothing more annoying. Don't put up with it any longer! SWF Protector ensures that your problem is solved with the unique combination of four exclusive protection methods: "Mask script" and "Mix script" for ActionScript 2, and "Protect" and "Obfuscate" for ActionScript 3. For the most thorough protection Advanced mode of SWF Protector is available.

SWF Protector makes source code inaccessible for Flash decompilers. You are able to encrypt all ActionScript classes, or select the most sensitive ones. Now the source code is completely concealed, making SWF files' playback safe.

Choose SWF Protector to say "No" to unauthorized attempts to discover the source code of your Flash files! Get convinced that it is the most effective way to firmly protect your SWF files!

SWF Protection || Step 1 - Start

Software installation

To protect ActionScript code inside your SWF files you can use SWF Protector by DComSoft.

- 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;
- Install SWF Protector following installation steps;
- After installation process is complete, launch SWF Protector;
- Choose one of the available protection modes: Simple or Advanced.

SWF Protection || Step 2 - Simple mode

Simple mode obfuscation.

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.

Simple mode use in SWF Protector - reliable ActionScript obfuscator
Imgage 1 - Simple mode use in SWF Protector - reliable ActionScript obfuscator

When using "Mix script" you can leave the default intensity value which is 50% or choose other using the slider. Note, that the lesser the intensity, the lesser the file size; however the protection security level is lower in this case.

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.

Check out developer`s protect swf page

SWF Protection || Step 2 - Advanced mode - ActionScript 2.0

Advanced mode obfuscation, ActionScript 2.0.

Similarly to Simple mode, Advanced mode uses the same protection algorithms and which ones are applied depends on ActionScript version. The main difference is that Advanced mode allows configuring the protection settings for each block of code individually. The code is displayed hierarchically and you can choose the block of code to protect and the protection method to be applied to it.

"Mix script" and "Mask script" are applied if SWF file contains AS 2.0.

Advanced AS2 mode use in SWF Protector - reliable ActionScript obfuscator
Image 2 - Advanced mode use in SWF Protector - reliable ActionScript 2.0 obfuscator

When using "Mix script" you can leave the default intensity value which is 50% or choose other using the slider. Note, that the lesser the intensity, the lesser the file size; however the protection security level is lower in this case.

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.

More information is available at encrypt SWF page.

SWF Protection || Step 2 - Advanced mode - ActionScript 3.0

Advanced mode obfuscation, ActionScript 3.0.

"Protect" and "Obfuscate" methods are applied if SWF file contains AS 3.0.

Advanced AS3 mode use in SWF Protector - reliable ActionScript obfuscator
Image 2 - Advanced mode use in SWF Protector - reliable ActionScript 3.0 obfuscator

Note 1: In case when SWF file doesn't contain AS code, "Protect" method will be inactive.
Note 2: To decrease the resulting file size it is recommended to disable "Protect" and "Obfuscate" methods for standard code.

You may find more information at obfuscate SWF page.

SWF Protection || Step 3 - Finish

As soon as all algorithms are set, press "Protect all" button in Simple mode ( "Protect" button in Advanced).
After the protection process is finished, you will get two SWF files: original and the protected one.

Want to read more? - Check the secure SWF page.

SWF Protector was produced by DComSoft, Inc., is software development company with over ten years of experience in developing software solutions for Microsoft Windows, Linux and Mac operating systems.

SWF Protection || Compare obfuscated and non-obfuscated code

Actionscript code comparison before and after obfuscation with SWF Protector

The best way to understand the benefit of Flash obfuscation is to compare a non-protected development code with protected one.

Code before obfuscation:


stop();
if (this.holder1 == Number (this.holder1)) {
loadMovieNum ("jopeClipLoader5.swf", this.holder1);
} else {
this.holder1.loadMovie("jopeClipLoader5.swf");
}



Code after obfuscation:

do {
if (false) {
(() add ().holder1);// not popped
if (true) {
// unexpected jump
do {
stop();
} while (false);
// unexpected jump
if (false) {
Set("\x0B\x1A\x13\x16", true);
} while (true);
do {
if (true) {
// unexpected jump
// unexpected jump
if (false) {
} while (true);
do {
// unexpected jump
} while (true);
// swfAction0xAD hexdata 0x52,0x17,0x99,0x02,0x00,0x39,0x00,0x9A,0x01... // Unknown action
}
(() add ().holder1)[(!"holder1".holder1()).holder1].loadMovie();
// unexpected jump
/* Error1016 */
// unexpected jump
do {
(this);// not popped
if (true) {
// unexpected jump
} while (this);
(this);// not popped
// unexpected jump
}
}
}
if (false) {
} while (true);
do {
// unexpected jump
} while (true);
// swfAction0xAD hexdata 0x52,0x17,0x99,0x02,0x00,0x39,0x00,0x9A,0x01,0x00,0x00,0x99... // Unknown action
}
"holder1".holder1.loadMovie();
// unexpected jump
/* Error1016 */
// unexpected jump
do {
(this);// not popped
if (true) {
// unexpected jump
} while (this);
(this);// not popped
// unexpected jump
}
}
}
Set("\x0B\x1A\x13\x16", true);
} while (true);
do {
( /* Error1010 */);// not popped
if (true) {
// unexpected jump
// unexpected jump
if (false) {
} while (true);
do {
// unexpected jump
} while (true);
// swfAction0xAD hexdata 0x52,0x17,0x99,0x02,0x00,0x39,0x00,0x9A,0x01,0x00,0x00,0x99,0x02... // Unknown action
}

@SWF_Protector on Twitter

Be tuned! Follow @SWF_Protector on Twitter and get updates about news, discounts, promo actions and coupon codes for our software.

With all due respect,
DComSoft Team
www.dcomsoft.com

Popularity among the analogs

SWF Protector is not the only one flash obfuscator on the market... So which one do you use?

Which Actionscript Obfuscator is more popular? Lets find out!

Loading poll. Please Wait...

Waiting for your Feedbacks and Suggestions!

Secure SWF using actionscript obfuscator

  • Clint Jul 1, 2010 @ 3:57 am | delete
    That is great! Very interesting tutorial...
  • brandrocker Jun 12, 2010 @ 9:09 am | delete
    Thanks for sharing the information.. I think this tool will be pretty handy for many web developers to protect their flash artwork!
  • Ammar May 11, 2010 @ 4:51 am | delete
    I heard about this tool before. Pretty reliable...
    To goodi... SWF Encrypt sucks)
  • Ruben May 11, 2010 @ 1:35 am | delete
    @goodi
    I think, I know the answer!
    This is because SWF Protector provides the same(or even more) functionality then others for the much less cost. It costs 40$ only.
    SWF Encrypt costs 150. Doswf more looks like some garbage.
  • goodi May 6, 2010 @ 8:56 am | delete
    Why no swfencrypt? Why no doswf?
  • Load More

ActionScript obfuscator from DComSoft

SWF Protector - leader among the flash obfuscators

DCoM SWF Protector for Linux
by SWFsecurity | video info

2 ratings | 357 views
curated content from YouTube

ActiveTuts news

SWF Protector

Loading

Best FREE Flash games

Protect your Flash game with SWF Protector

SWF Protector was invented to secure SWF Flash games and websites. All your interactive flash applications will be secured from the crackers.
Loading

Twitter RSS

SWF Protector RSS

Loading

by

AlexaChe

SWF Protector - reliable software for protection and obfuscation actionscript code within your SWF Flash files. Available for Windows, Mac OS and Linux.... more »

Feeling creative? Create a Lens!

Alex recommends 

Loading