与 Windows Phone 8 混淆 [英] Obfuscation with Windows Phone 8

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

问题描述

我正在考虑混淆我的 Windows Phone 8 应用.

I'm looking into obfuscating my Windows Phone 8 app.

首先让我感到困惑的是,我看过的大多数程序都在谈论混淆我构建应用程序时生成的 .DLL 文件,但它是 .xap 文件我上传到商店?所以我不明白混淆 .DLL 文件会有什么区别?

The first thing that's thrown me a little is that most programs I've looked at talk about obfuscating the .DLL file that is generated when my build my app, but it's the .xap file I upload to the store? So I don't understand what difference obfuscating the .DLL files would make?

推荐答案

我理解人们对能够从商店 .xap 文件中提取 dll 的安全性的担忧,尤其是如果有人在未来某个时候破解它.我的老板就是其中之一,所以我被要求在将它提交到商店之前混淆我的 Windows Phone 8.1 silverlight 应用程序.

I understand peoples trepidation around the security of being able to extract the dlls from a store .xap file, especially if someone cracks it at some point in the future. My boss is one of them, so I was asked to obfuscate my Windows Phone 8.1 silverlight app before committing it to the store.

我看了一些,推荐 ConfuserEx.通过设置一些简单的设置,我能够完全修改代码、方法名称、常量和其他所有内容.Reflector 甚至无法打开 dll,而 ILSPY 只是显示了一大堆句号.印象非常深刻 - 它甚至对主 UI 项目也这样做了.

I looked at a few, and recommend ConfuserEx. By setting a few simple settings, I was able to completely mangle the code, method names, constants and everything else. Reflector couldn't even open the dlls and ILSPY just showed a whole load of full-stops. Very impressed - it even did this to the main UI project as well.

它有点反复试验,但只需设置一个全局策略,Protection=None,然后添加无效元数据"保护(我还向除主 UI 项目之外的所有项目添加了常量"和重命名").

Its a bit of trial and error, but just set a global policy with Protection=None, then add in "invalid metadata" protection (i also added "constants" and "rename" to all except the main UI project).

而且它是免费的!!!

我知道并非难以理解,但确实增加了一点保护(正如他们所说,让诚实的人保持诚实").作为构建后事件也很有用,特别是如果您将 xap 文件直接传递给利益相关者进行评估,而无需通过商店.

Not impenetrable I know, but does add that little bit more protection (as they say, "keeps honest people honest"). Its also useful to do as a post-build event, especially if you're passing your xap file direct to stakeholders for evaluation without going through the store.

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

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