I want to encrypt plain text URLs in a text file which is embedded in an Android APK. I am currently saving my URLs in as Strings in that file. With these URLs I am loading data from a MySQL database. The structure is as follows:
String url="http://faazani.com"/api
However, I want to encrypt the URL while using it. If someone extracted these URLs from the APK file, they would know where we host the API. I want to keep this a secret.
As this is a serious issue for me, I'd appreciate any help.