1. Check out our companion app, Forums for Android! Download from Google Play

Secure way to store data...

Discussion in 'Android Apps & Games' started by brandon123, Nov 14, 2010.

  1. brandon123

    brandon123 New Member
    Thread Starter
    5

    Nov 14, 2010
    2
    0
    5
    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
     

    Advertisement

  2. Rob.177870

    Rob.177870 Member
    16

    Oct 24, 2010
    21
    1
    16
    Scotland
    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.
     
  3. brandon123

    brandon123 New Member
    Thread Starter
    5

    Nov 14, 2010
    2
    0
    5
    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.
     

Share This Page

Loading...