How is encryption implemented?


I’m analyzing the security of an application that uses Couchbase Lite, so i would like to know as much as possible about the database encryption.

I see that it used to be implemented with SQLCipher. Is this still the case? If not, it would be nice to know, for example, if each database page is encrypted individually, how the key is derived from the password, if the entire database file appears to contain random data. I would be very helpful to have some information at the same level of detail as SQLCipher has on:

Couchbase Lite uses SQLCipher in 1.x releases, and 2.x releases uses SEE (SQLite Encryption Extension). You can find SEE documentation here:

In the Docs section on Couchbase website, if you navigate to Couchbase Lite 2.1, and pick any language you use, and search Database Encryption, you will get implementation examples.

Database encryption is an Enterprise Edition feature of Couchbase Lite.

1 Like

There is a section in the Couchbase Server 6.0 documentation talks about on-disk data encryption, here is the link: