SQLCipher ... Best place to store the DB password?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SQLCipher ... Best place to store the DB password?

Matronix
I am using SQLCipher to create a database on the device. The issue I am running into is how to keep the password secure? Any suggestions or recommendation on best practices for this?
Reply | Threaded
Open this post in threaded view
|

Re: SQLCipher ... Best place to store the DB password?

Robert Jordan
On 16.04.2013 17:42, Matronix wrote:
> I am using SQLCipher to create a database on the device. The issue I am
> running into is how to keep the password secure? Any suggestions or
> recommendation on best practices for this?

If you want to secure a user-chosen password, then you can store
it into iOS' keychain:

http://www.wildsau.net/post/2011/02/01/iOS-Store-passwords-in-the-keychain-using-MonoTouch.aspx

If you want to store an automatically generated hidden
password into the keychain, then the user would lose his
data if the keychain is reset. This might occur if a device
is restored from an unencrypted backup.

Robert

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: SQLCipher ... Best place to store the DB password?

Matronix
My scenario is that I want to create an encrypted, hidden database on the device. I was going to generate a key when the DB is created and wanted to store it, safely.