[guardian-dev] SQLCipher: best practices

Cédric Jeanneret guardian at ethack.org
Tue Aug 5 14:30:19 EDT 2014


Hello,

I'm considering using SQLCipher in a new app, as it will store location,
wireless essid and timestamp.
I've looked at the examples[1], but it seems they are using hard-coded
password which, obviously, isn't that good…

How shall I do in order to get some random password? If possible one per
device, generated at install time or anything like that (well, if that's
possible, of course ;) ).

Thanks for your inputs.

Cheers,

C.


[1]
https://github.com/sqlcipher/android-database-sqlcipher/blob/master/src/example/SQLDemoActivity.java


More information about the Guardian-dev mailing list