Otra forma de esconder tu codigo AS3 de decompilers…
package { import flash.display.Loader; import flash.display.Sprite; public class MainShell extends Sprite { [Embed(source="ActualSWF.swf", mimeType="application/octet-stream")] private static const bytes:Class; public function MainShell() { Loader(addChild(new Loader())).loadBytes(new bytes()); } } }
Instead of embedding the SWF directly, you could run it through some encryption and embed the encrypted SWF – it is mime type “application/octet-stream”, so you can really embed any binary file (even invalid file types). Subsequently, the “shell” SWF will decrypt the ByteArray before feeding it to the loadBytes() method of the Loader instance.
Deja un comentario