Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I encrypt my source code for android and ios?

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?

like image 999
Naju Avatar asked Mar 09 '23 20:03

Naju


2 Answers

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.

like image 117
Zeerak Hameem Avatar answered Mar 19 '23 23:03

Zeerak Hameem


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(¢¢¤);
     ¢¢º();
   }
}
like image 25
Neoco Avatar answered Mar 19 '23 23:03

Neoco