Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to obfuscate String in Android?

I want to obfuscate my api url.Can i use Proguard for this?If yes how do i do that?And how to add classes in Proguard configuration file to obfuscate the methods and variables​ present in the classes?

like image 282
Jack Avatar asked Feb 07 '26 01:02

Jack


1 Answers

You can now use a new gradle plugin + library to effectively obfuscate Strings in a class, Please check it here

https://github.com/MichaelRocks/paranoid

Also now there is a new plugin which can obfuscate resources also, please check it below

https://github.com/shwenzhang/AndResGuard

And help share and upvote this great information, so more developers can use it and thus more and more developers will contribute for further development of these plugins, and thus we can collectively improve these plugins and will give a nightmare for crackers.

like image 193
Vaishakh Avatar answered Feb 09 '26 10:02

Vaishakh