• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Secure way to store data...

I am writing an application that needs to store keys that will be compared against later. How can I do this securely? I have looked into using a SQLite database, but this doesn't seem to be secure at all...any thoughts?

brandon
 
I don't know if a package is available already but if you get hold of an algorithm which implements "MD5", you can use that to convert your key to be stored, and then when comparing later use it to convert what you're going to be comparing, and compare the results. If they're the same, then the keys match.

MD5 is non-reversible, so you can't get back to the original key from the MD5'd version. But you didn't say you wanted to do that, so there we go.
 
Sorry, a little bit of clarity. I was concerned with storing the keys using SQLite because of how easy it might be to overwrite that data...am I wrong to be concerned about this? Reading the keys is not a concern.
 
Back
Top Bottom