Flex/空气混淆 [英] Flex / Air obfuscation

查看:33
本文介绍了Flex/空气混淆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用 Flex 编写了(大部分)应用程序,我关心的是保护源代码.我启动了 Trillix swf 反编译器 的演示,并打开了安装到我的程序文件中的 swf 文件目录.我看到我写的所有动作包都在那里.即使有大量代码,我也不太关心包,因为如果没有 mxml 文件,它似乎仍然无法使用.我认为它们已转换为动作脚本,或者至少我希望如此.但是,我仍然想探索混淆.

I've written (most of) an application in Flex and I am concerned with protecting the source code. I fired up a demo of Trillix swf decompiler and opened up the swf file that was installed to my Program Files directory. I saw that all of the actionscript packages I wrote were there. I'm not too concerned with the packages, even though there is a substantial amount of code, because it still seems pretty unusable without the mxml files. I think they are converted to actionscript, or atleast I hope. However, I would still like to explore obfuscation.

有人对 Flash/Actionscript 3/Flex 混淆器有任何经验吗?你能推荐一个好的产品吗?

Does anyone have any experience with Flash / Actionscript 3 / Flex obfuscators? Can you recommend a good product?

推荐答案

这就是我要做的.

  • 将您的应用程序编译为 SWF 文件.然后使用 AES 加密 SWF.

  • Compile your application to a SWF file. Then encrypt the SWF using AES.

制作一个包装器"应用程序,使用 URLLoader 将加密的 SWF 加载到 ByteArray 中

Make a "wrapper" application that loads the encrypted SWF into a ByteArray using URLLoader

使用 as3crypto 库在运行时解密 swf.

Use the as3crypto library to decrypt the swf at runtime.

解密后,使用 Loader.loadBytes 将解密的 swf 加载到包装器应用程序中.

Once decrypted, use Loader.loadBytes to load the decrypted swf into the wrapper application.

这将使获取代码变得更加困难.并非不可能,但更难.

This will make it a lot harder to get your code. Not impossible, but harder.

对于 AIR 应用程序,您可以在将应用程序交付给最终用户时将 SWF 加密.然后您可以提供一个包含用于解密 SWF 的密钥的注册密钥.

For AIR applications you could leave the SWF encrypted when delivering the application to the end-user. Then you could provide a registration key that contains the key used to decrypt the SWF.

此外,这里有一个指向 AS3 混淆器的链接.我不确定它的效果如何.http://www.ambiera.com/irrfuscator/index.html

Also, here is a link to an AS3 obfuscator. I am not sure how well it works though. http://www.ambiera.com/irrfuscator/index.html

这篇关于Flex/空气混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆