how to save private key for android cordova app
<p>Let's imagine an android/phonegap app that connects with a server for data. I want to use some private key, so that you can use the API from the server only if you have the app.</p>

<p>I found there is a plugin for ios called keychain, but have not found something similar for android. Now, this must be a solved problem. A lot of apps use API's to servers on android. How do you solve this?</p>

<p>My main objective is not generating private keys, but keeping the servers private (for those that have the app). If the way to go is to generate a private key (which is what I thought at first), then I cannot find a way to save a private key securely when using phonegap on android. The closes I've got is putting it on javascript and obfuscating the code.</p>

<p>I found the android keystore, but if I understand correctly that's for cryptography which I don't need. </p>