Can I encrypt my source code for android and ios?

10,610

Solution 1

For Android

  1. Yes it is allowed on Google Play Store for Android.
  2. Yes it is a good practice (By using Proguard you can shrink your code, encrypt your code etc.)
  3. Proguard is the best way to to it in Android.
  4. Yes if you add proper proguard rules in your proguard file. The apk should run properly and will be accepted by the playstore.

Yes you can encrypt your Android source code using Proguard https://developer.android.com/studio/build/shrink-code.html

For iOS

I am not sure but i don't think you can use any hacking tool to decrypt iOS code.

Proguard

Proguard is free Java class file shrinker, optimizer, obfuscator, and preverifier. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names.

Hope this helps.

Solution 2

Try this Bg+ Anti Decompiler/Obfuscator It's the best tool for protect your android apps. One sample:

void ¢¢£()
{
   ¢¢ = (AdView) findViewById(R.id.ad_view);
   ¢¢¢=null;
   {
     AdRequest ¢¢¤ = new AdRequest.Builder() .build();
      ¢¢.loadAd(¢¢¤);
     ¢¢º();
   }
}
Share:
10,610
Naju
Author by

Naju

A Crazy and Lazy Programmer.

Updated on June 04, 2022

Comments

  • Naju
    Naju almost 2 years

    I have developed a hybrid app for both iOS and Android. If I use some some hacking tools then I can unzip the APK file and see the code.

    I also decrypted some famous app source code using the following website

    http://www.javadecompilers.com/apk
    

    I have following question:

    1. Is it permissible to encrypt the app code in both App store(android play store & Apple app store)?

    2. Is is the best practice?

    3. If it is permissible, what are the way to encrypt?

    4. Will be the encrypted app approved by app-store?