I want to implement encryption on my Android app and found a library that I think fits my requirements. I plan to store the salt on SharedPreferences
and the key would be inside gradle.properties
as an environment variable. Then the encrypted key would be generated at run-time via the library.
My question relates more on if my planned solution is secure enough that my app can't easily be compromised. Is it possible for the user to view the encrypted key at run-time with just the APK? And is my way of storing the salt and key acceptable or is it still not secure?