1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Secure way to store data...


Last Updated:

  1. brandon123

    brandon123 New Member This Topic's Starter

    Joined:
    Nov 14, 2010
    Messages:
    2
    Likes Received:
    0
    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

    Joined:
    Oct 24, 2010
    Messages:
    21
    Likes Received:
    1
    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 This Topic's Starter

    Joined:
    Nov 14, 2010
    Messages:
    2
    Likes Received:
    0
    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...