I just read this article http://android-developers.blogspot.in/2013/02/using-cryptography-to-store-credentials.html where I learnt to generate security key.
I want to kn
if Android is rooted, there is no way to secure any thing, so you should better look for architectural changes in your application.
Upon installation, WhatsApp creates a user account using one’s phone number as the username (Jabber ID: [phone number]@s.whatsapp.net). A password is generated using an unknown algorithm on the server end and sent to the client.
But if phone is rooted you can easily extract this password as mention here.
WhatsApp uses End-to-End Encryption, it stores all its data in encrypted form in internal storage.
Snapchat has stated that Snapchatters using a Rooted Android device will be blocked from logging in.
What you can do is to use the mixture of techniques by both giant applications WhatsApp and Snapchat i.e