LibraryActive

SQLCipher

SQLCipher is an open-source extension for SQLite that provides transparent, 256-bit AES encryption for database files.

Open source page ↗

Product features

Product features

Broad Platform Support

Supports iOS, Android, Windows, macOS, and Linux.

Commercial Editions

Offers commercial and enterprise packages with additional features.

Community Edition

Open-source edition available for community use.

Cross-Platform

Works on all major platforms and operating systems.

Multiple Editions

Offers Community, Commercial, Enterprise, and Enterprise FIPS editions.

Full Database Encryption

Encrypts the entire database file with 256-bit AES.

Hardware-backed Keystore Integration

Supports integration with platform keystores like Apple Keychain, Android Keystore, Windows Hello, and TPM-backed storage.

On-the-fly Encryption

Encrypts and decrypts pages as needed, enabling fast startup and good performance.

Passphrase Support

Supports user-supplied passphrases converted to encryption keys via PBKDF2-HMAC-SHA512 with a per-database random salt.

Platform Integrations

Integrations for Android, Apple, .NET, Windows, Linux, and more.

PRAGMA cipher_migrate

PRAGMA key

Set the key for use with the database.

PRAGMA rekey

Change the encryption key for a SQLCipher database.

Raw Key Support

Allows use of a cryptographically random 256-bit key via the raw key syntax.

Security Best Practices

Uses CBC mode, key derivation, and peer-reviewed OpenSSL crypto library.

Small Footprint

Small footprint and great performance, ideal for embedded applications.

sqlcipher_export()

Convenience function that can duplicate a database contents to an attached database with different settings.

Tamper Resistant

Designed to resist tampering.

Transparent Encryption

Applications use standard SQLite API without special knowledge of security.

Zero Configuration

Requires no configuration to use.