[guardian-dev] Writing about SQLCipher
Nathan of Guardian
nathan at guardianproject.info
Sun Feb 12 13:24:21 EST 2012
On 02/12/2012 01:18 PM, Mark Murphy wrote:
> I'll need something for my
> own sample app, anyway, and there are lots of questions about how to
> maintain login sessions like this (e.g., how do you time things out?).
Ultimately, you need to have the SQLCipher open instance inside of a
Service, not an Activity, so it stays open. Then you can close/lock it
as the user requires, or based on a timeout.
Otherwise, for less paranoid options, you can temporarily persists the
users passphrase in the Activity memory and use it to transparently
re-open the database onResume, etc.
More information about the Guardian-dev