Android encrypting Security key, Encryption key, and Important string
1. Many a time you are in a situation where you need store Security key, Database Encryption key or some important Access key in a safe place
2. Sometimes we have a requirement to encrypt the database but the question is, where to store the Database encryption seed key
3. IOS have keychain, where app can store such security keys in an encrypted form but android doesn’t have any such secured storage option
refer this conversation on Stackoverflow
http://stackoverflow.com/questions/10990821/how-to-securely-store-credentials-password-in-android-application
So we need to find some alternative for android where we can store such information securely.
4. I found one awesome post on web using which we can store our security keys in an encrypted format using Advanced Encryption Standard or AES
here is the link to that post
https://trivedihardik.wordpress.com/tag/android-aes-example/
5.This post has also provided code for NDK support for making encryption stronger.
Please feel free to suggest an update.
Updates are always welcome.
Happy coding :)
Originally published at androiddevelopmentguide.blogspot.com on July 28, 2018.