Hello everybody, as you know Flash Player has a bad reputation, because he has a problem with his protection. Well a few days ago, I was asked if I want to make a review for a SWF protector, i came across this sofware called SWF Protector. I started to make some tests, and I was really surprised when I saw that he realy makes a very good job.
Below is an example of a trying a decompilation. The SWF that I used is my last project, posted on my blog. If you are a reader of my blog you know that my last project is that Bounce Effect
So, this is the code that I extract from the SWF without having a protection:
package { import flash.display.MovieClip; import flash.events.Event; import flash.geom.Rectangle; import flash.geom.ColorTransform; import flash.geom.Transform; public class Ball extends MovieClip { public var speedX:int = 10; public var speedY:int = -10; public function Ball() { super(); addEventListener(Event.ENTER_FRAME, onE); var cT:ColorTransform = new ColorTransform(); cT.color = Math.random() * 0xFFFFFF; transform.colorTransform = cT; } private function onE(e:Event):void { x += speedX; y += speedY; var bounds:Rectangle = getBounds(parent); if(bounds.left < 0 || bounds.right > stage.stageWidth) { speedX *= -1; } if(bounds.top < 0 || bounds.bottom > stage.stageHeight) { speedY *= -1; } } } }
And this is the code that I extract with protection:
package { import flash.geom.*; import flash.display.*; import flash.events*; public class Ball extends flash.display.MovieClip { public function Ball() { if (false) { !false; } } internal function onE(arg1:flash.events.Event):void { if (!true) { -true; } } public var speedX:int = 10; public var speedY:int = -10; } } import flash.display.*; import flash.events.*; { if(!false) { ; } }
As you can see, without a protection the source code is note safe.
SWF Protector is a highly reliable encryption solution, which will thoroughly protect all of your Flash files from all kinds of SWF decompilers. SWF Protector fully protects ActionScript, so your artwork is impossible to steal. It uses four different protection algorithms that allow SWF file playback in Flash Player, but conceal the source code completely. You will be able to encrypt all ActionScript classes, or select specific ones that contain most sensitive code.
You can see more HERE
