混淆 Xamarin 应用程序

编程入门 行业动态 更新时间:2024-10-27 20:35:48
本文介绍了混淆 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:

  • 禁用调试
  • 使用 Dotfuscator 进行混淆
  • 将程序集捆绑到本机代码中(但请参见下文)
  • 使用 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 应用程序

    本文发布于:2023-10-07 01:33:00,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1468064.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:应用程序   Xamarin

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!