Saturday 14 May 2016

Android encrypting Security key, Encryption key, and Important string


1. Many a time you are in a situation where you need store Security key, Encryption key or some important string in a safe place


2. Sometimes we have a requirement to encrypt the database but the question is, where to store the
Encryption key


3. IOS have keychain, where app can store such security keys in an encrypted form but android doesn't have any


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 :)



My Apps MobileUtility

No comments:

Post a Comment