简体   繁体   English

加密as3 flash .swf

[英]Encrypting as3 flash .swf

I'm trying to protect my as3 .swf flash file code from decompilation. 我试图保护我的as3 .swf Flash文件代码免于反编译。 I cannot spend $$$ on commercial compilers though. 我不能在商业编译器上花钱。 How can i encrypt my swf for free? 如何免费加密我的瑞士法郎?

My brutally honest answer: don't even try. 我的残酷诚实答案:甚至不要尝试。 If someone has skill to make use of assets or code from your application, then they're going to have the basic knowledge needed to decompile your SWF and get what they need. 如果某人有能力利用您的应用程序中的资产或代码,那么他们将具备反编译SWF并获得所需内容所需的基本知识。

If you even want to try, then this is all I can suggest: http://www.kindisoft.com/ 如果您甚至想尝试一下,那么这就是我的建议: http : //www.kindisoft.com/

Hope this helps.. Or at least explains why you shouldn't spend time trying. 希望对您有所帮助。或至少说明您为什么不应该花时间尝试。

Though this is an old Topic.. I Thought id throw this in here.. Its not really considered 'Encryption' But it helps with a bit of protection , First you would need to Decompress your flash file.. You can do so with certain tools .. I Am trying to make a flash Decompressor / Compressor in java but.. Im sort of a noob to java but i've gotten quite good at AS3.. heres the simple solution... 尽管这是一个古老的主题。.我以为id放在这里。。它并不是真正的“加密”,但是它提供了一些保护,首先,您需要解压缩Flash文件。工具..我正在尝试用Java制作Flash Decompressor / Compressor,但是.. IM对Java来说有点菜鸟,但是我在AS3上已经很不错了。

First things first.. Rename all your classes to something that isnt common in AS3 .. dont name it like Class or Main change them all to like SillySilly1,SillySilly2 ... etc.. After your do that go to the next step 首先,将所有的类重命名为AS3中不常见的名称。不要将其命名为Class或Main,将其全部更改为SillySilly1,SillySilly2 ...等。完成后,转到下一步

Get a Decompressor... to Decompress the file from CWS to FWS Using a Decompressor is pretty easy well mine is just drag the file in and choose a name you want to save a decompressed copy as.. 获取解压缩器...将文件从CWS解压缩到FWS使用解压缩器非常容易,我只是将文件拖入其中并选择要保存解压缩副本的名称。

Grab a Hex Editor.. So this is the part that is gonna help protect your file open your favorite hex editor mines HxD.. Go ahead and drag your decompressed file into the hex editor its first three bytes should be FWS if its CWS its still compressed.. 抓取一个十六进制编辑器。。所以这部分将帮助保护您的文件,打开您喜欢的十六进制编辑器挖掘HxD。。继续,将解压缩的文件拖到十六进制编辑器中,如果其CWS仍然是FWS压缩..

Next step is to use the search function and search for all your class names individually.. After you find them start replacing them with names such as '@%F$@!fd#!' 下一步是使用搜索功能,并分别搜索所有的类名。找到它们后,开始用“ @%F $ @!fd#!”之类的名称替换它们。 Just a bunch of random characters.. The reason i said go back and change them in your project higher in the post is so you can find them easier in the hex editor.. But yea after you replace all class names you find it will replace how it looks in a decompile and when they look at the code the class names are changed in there as well so it would be like 只是一堆随机字符。.我说回去的原因是在帖子的更高位置更改它们,以便您可以在十六进制编辑器中更轻松地找到它们。.但是,是的,在替换所有类名之后,您会发现它将替换它在反编译中的外观以及当他们查看代码时,类名也在其中进行了更改,因此就像

private var Hello:$@#!!$ 私人var您好:$ @#!! $

Pretty nice thing to learn to do .. Hope this helps anyone who reads this in the future.. 学会做的事很不错..希望这对以后阅读此书的人有所帮助。

  • Xploit Xploit

Unfortunately it's fairly easy to decompile a swf with widely available free tools, so you should architect your code on the assumption that anyone can read it. 不幸的是,使用广泛可用的免费工具对swf进行反编译非常容易,因此您应该在假定任何人都可以阅读的前提下构造代码。 Just like in JavaScript, never put sensitive information in the swf, and any particularly valuable algorithms that you want to protect from prying eyes need to run on your server, as a server-side script that you can call and get a response from. 就像在JavaScript中一样,永远不要在swf中放入敏感信息,并且要保护自己免受窥探的任何特别有价值的算法都需要在服务器上运行,作为可以调用并从中获取响应的服务器端脚本。

As others in this thread have said, I honestly wouldn't waste your time; 正如本线程中的其他人所说,老实说,我不会浪费您的时间。 even if you were to shell out for SecureSWF; 即使您打算购买SecureSWF; you can only really achieve obfuscation rather than full encryption as the bytecode has to be loaded into memory in order to execute in the flash player (and can therefore be dumped out). 您只能真正实现混淆而不是完全加密,因为必须将字节码加载到内存中才能在Flash Player中执行(因此可以转储出去)。

If you want to read more about the subject (and indeed, learn more about how to get around common SWF encryption techniques) then I'd suggest spending some time on Jean-Philippe Auclair's blog , especially the articles in the security category . 如果您想阅读更多有关该主题的信息(并且确实要了解更多有关如何解决常见SWF加密技术的知识),那么我建议您花些时间在Jean-Philippe Auclair的博客上 ,尤其是安全类别中文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM