SQLite Database (Encrypted)

SQLite Database (Encrypted)

With the library SQLCipher, SQLite databases can be password-encrypted.
Secure ways to retrieve the database key include:

  • • Asking the user to decrypt the database with a PIN or password once the app is opened (weak passwords and PINs are vulnerable to brute force attacks)
  • • Storing the key on the server and allowing it to be accessed from a web service only (so that the app can be used only when the device is online)