Harindaka
Harindaka

Reputation: 4898

SQLite Encryption in BlackBerry

How can I provide seamless encryption for the SQLite database used by my app. I'm looking for something similar to SQLCypher which transparently handles the encryption behind the scenes so that the app does not have to worry about it. There's no release for SQLCypher for BlackBerry mentioned on their site even though there are releases for Android and iOS. Is it possible to use SQLCypher or is there an alternative?

Upvotes: 0

Views: 430

Answers (1)

Michael Donohue
Michael Donohue

Reputation: 11876

RIM provides a cryptographic interface for working with SQLite. It is quite easy to work with. See DatabaseSecurityOptions and DatabaseFactory.create() or DatabaseFactory.open() with the appropriate arguments. By using a CodeSigningKey, the database will be readable only by apps signed with the same key, on that same device. If the database is moved to a different device, the data will be unreadable. If the database is accessed by a different app, it will be unreadable.

Upvotes: 2

Related Questions