Protect string constant against reverse-engineering

D-Fox picture D-Fox · Sep 15, 2011 · Viewed 12.3k times · Source

I have android application that has hard coded (static string constants) credentials (user/pass) for sending emails via SMTP.

The problem is that .dex file in .apk can be easily reverse-engineered and everybody can see my password.

Is there a way how to secure these credentials, while i will still be able to use them in my classes?

Answer

Anuj Jindal picture Anuj Jindal · Jun 27, 2016

We can use "jni module" to keep 'Sensitive Hardcoded Strings' in the app. when we try to reverse engineer APK file we get lib folder and .so files in respective process-folders. which can not decrypt.