混淆 Xamarin 应用程序 [英] Obfuscate Xamarin Application

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

问题描述

是否可以提取 Xamarin Android 应用程序的代码并对其进行检查?

Is it possible to extract the code of a Xamarin Android application and inspect it?

我正处于即将在 Play 商店发布的应用程序的最后阶段.但是,我担心代码是否可以被其他人提取和查看.

I am in last stages of one Application which would be soon released on Play Store. However, I am worried if the code could be extracted and looked at by other people.

请告知,如何保护我的应用程序免受查看其代码的其他人的侵害.

Please advise, how to secure my App from other people looking at the code for it.

推荐答案

是的,可以提取 Xamarin.Android 应用程序的代码.默认情况下,.dll 文件只是 APK 内的资源,可以使用 zip 实用程序提取它们并使用例如ILSpy.

Yes, it is possible to extract the code of a Xamarin.Android application. By default, the .dll files are just resources inside the APK, and they can be extracted with a zip utility and examined with e.g. ILSpy.

Xamarin 文档解释如何保护您的应用程序,包括:

The Xamarin docs explain how to protect your application, including:

  1. 禁用调试
  2. 使用 Dotfuscator 进行混淆
  3. 将程序集捆绑到本机代码中(但请参见下文)
  4. 使用 AOT(本机)编译(但见下文)

请注意,#3 需要企业许可证,并且只是将 .NET .dlls 放在 APK 中更深的层;仍然可以提取它们并且它们仍然是未混淆的.

Note that #3 requires an Enterprise license and just puts the .NET .dlls a layer deeper in the APK; it is still possible to extract them and they are still unobfuscated.

请注意,#4 被明确列为不应在生产中使用的实验性功能.

Note that #4 is explicitly listed as an experimental feature that should not be used in production.

完全披露:我为 PreEmptive Solutions 工作,我们制作 Dotfuscator.

Full disclosure: I work for PreEmptive Solutions, and we make Dotfuscator.

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

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