Xamarin Code Security

I am developing an application that includes payments. I use some kind of encryption in the application, as well as some encryption and security on the server.

I want to know to protect my Xamarin code specifically when deploying to Android. I know that Xamarin.iOS is converted to native code, but Xamarin.Android deploys .Net code into a DLL that can be easily decompiled with DotPeek or any other tool, and the code will be visible, including my encryption keys or any other data, security-related security essentials between the server and my application. Obfuscation is an option, but I want to know any other options. Please help me in this matter, because it bothers me very much.

+4
source share
2 answers

To answer your question directly: no, in fact, there is no protection against an application based on the Xamarin-compilation of Android, against reverse engineering attacks.

, Android APK , ProGuard, .NET, - , , . .NET toolchain , , , . , ProGuard Java- .NET, APK Xamarin-.

, , , DotPeek, ildasm, ILSpy Reflector, ( !) .NET IL .NET , # VB.NET. Visual Studio Xamarin Studio - eep! Xamarin.Android Just-In-Time, ProGuard- Android, , Babel .Net Crypto-Obfuscator .Net, - / , .

, ; , , , , , . 100% , , , " /" , , . SilverlightFox, , .

+6

Xamarin , Hybrid AOT Android - , IL NET, , NET , , iOS ( ):

        [MethodImpl(8)]
        protected void Recalculate(Content35mm.Conversion item = null)
        {
        }

( llvm) ( , apk , ):

    <DebugSymbols>false</DebugSymbols>
    <AndroidSupportedAbis>armeabi-v7a;arm64-v8a</AndroidSupportedAbis>
    <AndroidCreatePackagePerAbi>true</AndroidCreatePackagePerAbi>
    <AndroidLinkMode>SdkOnly</AndroidLinkMode>
    <AotAssemblies>true</AotAssemblies>
    <AndroidAotMode>Hybrid</AndroidAotMode>
    <AndroidAotAdditionalArguments>no-write-symbols,nodebug</AndroidAotAdditionalArguments>
    <EnableLLVM>false</EnableLLVM>
    <BundleAssemblies>false</BundleAssemblies>
    <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
    <EnableProguard>true</EnableProguard>

xamarin android ( ):

https://xamarinhelp.com/xamarin-android-aot-works/

0

All Articles