Crypt and decrypt a SQLite database in an iOS and Android application

| 1 minute read

We just published an article showing how to crypt a SQLite database, and decrypt it from an iOS and Android application.


Ceci n’est pas une base de donnée. C’est peut-être une base de donnée cryptée.

This is not a database. This maybe is a crypted database.


Image with Creative Commons license (Attribution-Noncommercial-Share Alike 3.0 Unported).
Database picture by Barry Mieny, with a Creative Commons license (Attribution-Noncommercial-Share Alike 3.0 Unported).


We are using SQLCipher, an open source extension of SQLite.

We show how to crypt the database on Mac OS X, and how to decrypt it to query it on mobile (iOS & Android) ; we also explain our strategy to crypt the database in your build process.

The original article, in french, is available here, with all details, step by step.
If you can’t read french, we published the code of the project on

Guillaume Cerquant Author: Guillaume Cerquant

Entrepreneur and geek,
focused on User Experience and Innovation.

Arnaud Giuliani Author: Arnaud Giuliani

French Java Software Tech, create and run #java #server gears (distributed and other under the hood stuffs). Also like to make #android apps

Like it?  Share  it!

Share Button
What do  You  think? Write a comment!

Leave a Reply

Required fields are marked *.

CommentLuv badge

This site uses Akismet to reduce spam. Learn how your comment data is processed.