Skip to content
pubscout

sqflite_sqlcipher

3.4.1, released 4 months ago by an unverified publisher

Flutter plugin for SQLite databases with SQLCipher encryption support.

Unverified publisher
$ flutter pub add sqflite_sqlcipher
Source repository

What it does

Provides an encrypted SQLite database interface for Android, iOS, and macOS using SQLCipher. It shares the same API as the standard sqflite plugin with an added password option in the openDatabase method.

AI-written summary of version 3.4.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need encrypted local SQL storage in your Flutter app.
  • You are migrating from standard sqflite and need row-level or full database encryption.

Skip it when

  • You do not need database encryption (use standard sqflite or drift instead).
  • You prefer an ORM or reactive stream-based database approach.

Strengths

  • Drop-in replacement for sqflite with password support
  • Uses up-to-date SQLCipher native libraries on Android, iOS, and macOS
  • Automatic database migration support for older SQLCipher versions on Android

Weaknesses

  • Requires platform-specific configuration like ProGuard rules on Android
  • Can conflict with standard sqflite native dependencies on iOS under certain setups

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
3

Requires adding ProGuard rules on Android (`-keep class net.sqlcipher.** { *; }`) and potential dependency overrides on iOS if transitive dependencies use standard sqflite.

import 'package:sqflite_sqlcipher/sqflite.dart';

Database db = await openDatabase(
  path,
  password: "my password",
  // onCreate, onUpgrade...
);

Alternatives

Packages that do the same job and could replace sqflite_sqlcipher.

  • sqflite

    If you do not require database encryption and want standard SQLite support.

  • drift

    If you want a type-safe reactive SQL database builder with compile-time SQL checks.

  • flutter_secure_storage

    If you only need to store small key-value pairs securely rather than a full SQL database.

Works with

Packages commonly used together with sqflite_sqlcipher: ones it builds on, ones built on it, and its own family.