2026-12-03 15:00:00 -0500
Recent guidance from the NSA and a joint statement from ONCD, NSA, and CISA, alongside commitments from major technology companies, have put a spotlight on migrating systems to Post-Quantum Cryptography (PQC). Since those announcements went out, we’ve heard from customers and developers asking how this affects SQLCipher.
The short answer: the cryptographic algorithms protecting your data in SQLCipher are already post-quantum resistant.
Why Quantum Computing Targets Asymmetric Cryptography
Quantum computers threaten traditional asymmetric (public-key) cryptography like RSA and Elliptic Curve Cryptography (ECC), which rely on mathematical problems such as integer factorization and discrete logarithms. Because public-key algorithms handle TLS handshakes, digital signatures, and key exchanges over networks, the industry is actively migrating those protocols to NIST’s new PQC standards.
How SQLCipher Protects Data at Rest
Rather than relying on vulnerable public-key exchanges to protect stored records, SQLCipher’s security design uses NIST-standardized symmetric cryptography and hash functions:
- SQLCipher encrypts data using 256-bit AES in CBC mode. Grover’s algorithm, the primary quantum attack against symmetric ciphers, effectively halves symmetric key strength. A 256-bit AES key still retains 128 bits of effective security against a quantum computer, keeping it well out of reach of brute-force attacks and aligned with NSA CNSA 2.0 symmetric requirements.
- SQLCipher derives encryption keys using PBKDF2-HMAC-SHA512 (defaulting to 256,000 iterations) and verifies page integrity with HMAC-SHA512. SHA-512 produces 512 bits of output (256-bit classical collision resistance and strong resistance against quantum preimage and collision attacks), keeping both key derivation and tamper detection solid.
- Keys stay entirely under your application’s control, and SQLCipher relies on established underlying cryptographic providers rather than custom primitives.
- For government, defense, and enterprise deployments under federal compliance mandates, SQLCipher Enterprise FIPS editions use FIPS 140-3 validated cryptographic modules to run these 256-bit AES and SHA-512 operations, meeting NSA CNSA 2.0 symmetric requirements for data at rest.
What You Should Do Next
If you’re already using SQLCipher version 4 or later, you don’t need to re-encrypt your database files or change file formats. Existing 256-bit AES and HMAC-SHA512 databases are already protected at rest.
To keep the rest of your infrastructure aligned with federal guidance, we recommend a few practical steps:
- Audit external network transport and key exchanges. If your application sends SQLCipher databases or keys over a network, make sure your TLS endpoints and transport layers are on a path to adopt NIST PQC key-encapsulation mechanisms.
- Stick to high-entropy keys. Symmetric quantum resistance relies on strong key material, so use proper key generation, strong passphrases, or OS keystore APIs in your application.
- Stay current with releases by tracking SQLCipher updates and the Zetetic blog so your apps stay up to date with the latest cryptographic providers like OpenSSL.
If you have questions about post-quantum compliance or integrating SQLCipher into your architecture, contact our team or join the discussion on the Zetetic Forum.
2026-12-03 14:30:00 -0500
Recent guidance from the NSA and a joint statement from ONCD, NSA, and CISA, alongside commitments from major technology companies, have put a spotlight on migrating systems to Post-Quantum Cryptography (PQC). Since those announcements went out, we’ve heard from customers asking how this affects Codebook and Codebook Cloud.
The short answer: the cryptographic algorithms protecting your data in Codebook and Codebook Cloud Secure Sharing are already post-quantum resistant.
Why Quantum Computing Targets Asymmetric Cryptography
Quantum computers threaten traditional asymmetric (public-key) cryptography like RSA and Elliptic Curve Cryptography (ECC), which rely on mathematical problems such as integer factorization and discrete logarithms. Because public-key algorithms handle TLS handshakes, digital signatures, and key exchanges over networks, the industry is actively migrating those protocols to NIST’s new PQC standards.
How Codebook Protects Data at Rest and in Sync
Rather than relying on vulnerable public-key exchanges to protect stored records, Codebook is built on SQLCipher’s security design, using NIST-standardized symmetric cryptography and hash functions:
- Codebook encrypts your database using 256-bit AES in CBC mode. Grover’s algorithm, the primary quantum attack against symmetric ciphers, effectively halves symmetric key strength. A 256-bit AES key still retains 128 bits of effective security against a quantum computer, keeping it well out of reach of brute-force attacks and aligned with NSA CNSA 2.0 symmetric requirements.
- Codebook derives your local encryption key using PBKDF2-HMAC-SHA512 (256,000 iterations) and verifies page integrity with HMAC-SHA512. SHA-512 produces 512 bits of output (256-bit classical collision resistance and strong resistance against quantum preimage and collision attacks), keeping both key derivation and tamper detection solid.
- Your local encryption key is derived from your Master Password on your device and is never sent to or stored in the cloud.
- When you sync across devices via Codebook Cloud, Google Drive, Dropbox, or local Wi-Fi, your data is encrypted on your device using your local Sync Key with the exact same 256-bit AES and HMAC-SHA512 standard used at rest before it ever leaves your device.
Post-Quantum Key Exchange and Signatures in Codebook Cloud Secure Sharing
Where asymmetric cryptography is actually needed, specifically when sharing credentials between different users, we built Codebook Cloud Secure Sharing from the ground up with NIST’s post-quantum standards.
Secure Sharing uses ML-KEM (FIPS 203) to establish shared secrets and encrypt entry records between trusted Codebook Cloud contacts. Unlike RSA or ECC key exchanges, ML-KEM resists both classical and quantum attacks, protecting shared records from “harvest now, decrypt later” collection.
Every shared entry is also signed and verified using ML-DSA (FIPS 204), ensuring shared records genuinely come from a verified contact and haven’t been altered in transit.
What You Should Do Next
If you’re already using Codebook version 4 or later, you don’t need to re-encrypt your database files, change file formats, or migrate your vault. Existing 256-bit AES and HMAC-SHA512 databases are already protected at rest and during sync.
To keep your account and devices in the best shape, we recommend a few practical steps:
- Stick to a strong Master Password. Symmetric quantum resistance relies on strong key material, so continue using a strong Master Password and keep a secure backup of your Sync Key.
- Stay current with releases by tracking Codebook updates and the Zetetic blog so you always have the latest security updates across your devices.
If you have questions about post-quantum security in Codebook or Codebook Cloud, contact our team or join the discussion on the Zetetic Forum.
2026-12-01 07:00:00 -0500
We’re pleased to announce the following releases:
- SQLCipher 4.21.0, which is a maintenance release for SQLCipher 4
- SQLCipher 5.0.0-rc, which is a release candidate for SQLCipher 5
We anticipate that 4.21.0 will likely be the final release of SQLCipher 4, so developers should begin evaluating SQLCipher 5 if they haven’t done so already.
SQLCipher 4.21.0
The following important changes are included with SQLCipher 4.21.0:
- Fixes a rare cache corruption where rollback of a schema change could cause statements to fail with
SQLITE_CORRUPT even though the database is intact
- Allows initialization using the
SQLITE_EXTRA_INIT_MUTEXED macro to avoid a race condition between concurrent connections
- Blocks when there is a page size mismatch between a plaintext header and the current SQLCipher context
- Blocks
PRAGMA cipher_migrate when the main database is read-only
- Keeps URI parameters when
cipher_migrate reopens the main database
- Skips automatic cleanup when keyed connections remain open at process exit
- When using VFS database file preallocation, SQLCipher generates the random salt when the first page is encrypted, prior to a read operation
- Raises the minimum watchOS version to 9.0 for Xcode 27 compatibility
SQLCipher for Android Changes
- Adds WAL mode configuration to the
SQLCipherDriver constructor. The new enableWriteAheadLogging argument allows opening a WAL mode database directly, without switching to DELETE mode first.
- Rolls back transactions when a
COMMIT fails before the connection is returned to the connection pool
- Limits use of the primary connections for read operations once secondary connections are opened in WAL mode
- Fixes
beginTransactionReadOnly() to use BEGIN DEFFERRED instead of BEGIN EXCLUSIVE
SQLCipher Commercial & Enterprise
SQLCipher Commercial and Enterprise packages include the following enhancements:
- Takes advantage of new mutexed initialization
- Updates SQLCipher for JDBC to upstream sqlite-jdbc release 3.54.1.0
Cryptographic Provider Matrix
The table below summarizes the cryptographic providers used across packages and platforms:
| Edition |
Platform |
Cryptographic Provider |
| Community (non-FIPS) |
Android |
based on LibTomCrypt 1.18.2 |
| Community (non-FIPS) |
Apple |
Common Crypto (version varies by OS) |
| Commercial & Enterprise (non-FIPS) |
Apple |
Common Crypto (version varies by OS) |
| Commercial & Enterprise (non-FIPS) |
Other Platforms |
OpenSSL 3.5.9 LTS |
| Enterprise FIPS |
All Platforms |
SQLCipher Cryptographic Module Based on OpenSSL 3.5.9 LTS |
SQLCipher 5.0.0-rc
WARNING: This should only be used for testing at this time, not in production. It includes major functional, API, and behavioral changes that are NOT COMPATIBLE with SQLCipher 4 and earlier by default.
To recap, SQLCipher 5 includes AEAD encryption (AES-256-GCM), an 8192 byte default page size, and expanded PRAGMA rekey support for converting plaintext databases to encrypted, and vice versa. See the SQLCipher 5.0.0-beta announcement and SQLCipher 5.0.0-beta.1 announcement for additional details.
Changes Between 5.0.0-beta.1 and 5.0.0-rc
SQLCipher 5.0.0-rc includes all the changes from SQLCipher 4.21.0, plus the following:
- Refuses keying operations in an active transaction and places the database into a permanent error state
- Normalizes errors returned by
sqlcipher_process_page to satisfy pager requirements
- Adjusts the error reported when the first page fails to decrypt after the key has already been used, reporting
SQLITE_CORRUPT instead of SQLITE_NOTADB
- Fixes plaintext-to-encrypted rekey so it works when other databases are attached
IMPORTANT NOTE: This release contains API, ABI, and library behavioral changes. Library integrators that manage SONAME are advised to update the version at build time using -soname or ./configure --soname for this release.
SQLCipher Commercial & Enterprise
SQLCipher Commercial and Enterprise packages for 5.0.0-rc include the following enhancements, in addition to the 4.21.0 changes:
- Modernizes all .NET packages to use .NET 10 LTS
- Drops legacy Xamarin support for iOS .NET and Android .NET packages (now using net10.0-ios15.0 / net10.0-android21.0)
Compatibility and Migration
The default v5 database settings are not backwards-compatible with SQLCipher 4 databases. Application code changes are required to take advantage of the new defaults. To open or migrate existing databases, see the 5.0.0-beta.1 announcement for the full list of options, including PRAGMA cipher_migrate, PRAGMA cipher_compatibility, PRAGMA cipher_default_compatibility, and PRAGMA rekey.
Upgrading and Availability
SQLCipher 4.21.0
SQLCipher 4.21.0 is available now. As always, please test your applications thoroughly with the new version before deploying to production.
Commercial and Enterprise - On-demand access to new releases of SQLCipher packages are available to all licensees with an active subscription from the Customer Downloads fulfillment site. Subscribers will also receive a separate email notification regarding the update and can contact us at any time for private support directly from the SQLCipher development team. Commercial and Enterprise edition upgrades require a new license code from the SQLCipher fulfillment site for each version. Don’t forget to change the license code in your application(s) when you upgrade.
Community Edition - SQLCipher Community Edition source code is available on GitHub, via AAR packaging for Android, and Swift Package Manager for Apple platforms.
SQLCipher 5.0.0-rc
SQLCipher 5.0.0-rc is available for download starting today, separate from the existing SQLCipher 4 releases, so you can test in parallel with your current deployment.
Commercial and Enterprise - Your organization will find the new release candidate packages on the “Prerelease” tab of the Customer Downloads fulfillment site. Don’t forget to update the license code in your application(s) when you upgrade!
Community Edition - Source for SQLCipher 5.0.0-rc is available at the main repository tag on GitHub. SQLCipher for Apple is available from the SQLCipher.swift tag. SQLCipher for Android is available as source or a downloadable AAR package from the SQLCipher Android tag.
We recommend testing this release candidate thoroughly to prepare applications and identify potential upgrade issues. For the time being, please direct feedback and questions regarding 5.0.0-rc to support@zetetic.net so all issues are reported in one place.
For feedback and questions, please visit our Community Forum or private support channels. Thank you for using SQLCipher!
2026-10-27 08:00:00 -0400
We’re pleased to announce SQLCipher 4.20.0. This maintenance release updates the SQLite baseline to 3.54.1, improves migration error behavior, and refreshes cryptographic providers.
SQLCipher Changes
- Updates the SQLite baseline to 3.54.1
- Avoids a deferred error when
PRAGMA cipher_migrate fails before migrating
- Skips the
.fini_array finalizer on WebAssembly
Cryptographic Provider Matrix
The table below summarizes the cryptographic providers used across SQLCipher packages and platforms:
| Edition |
Platform |
Cryptographic Provider |
| Community (non-FIPS) |
Android |
based on LibTomCrypt 1.18.2 |
| Community (non-FIPS) |
Apple |
Common Crypto (version varies by OS) |
| Commercial & Enterprise (non-FIPS) |
Apple |
Common Crypto (version varies by OS) |
| Commercial & Enterprise (non-FIPS) |
Other Platforms |
OpenSSL 3.5.9 LTS |
| Enterprise FIPS |
All Platforms |
SQLCipher Cryptographic Module Based on OpenSSL 3.5.9 LTS |
Upgrading and Availability
SQLCipher 4.20.0 is available now. We recommend that all applications upgrade to incorporate the improvements in this release. This release updates the SQLite baseline to 3.54.1, so review the release notes for changes that may affect your application. As always, test your applications thoroughly with the new version before deploying to production.
Commercial and Enterprise - On-demand access to new releases of SQLCipher packages are available to all licensees with an active subscription from the Customer Downloads fulfillment site. Subscribers will also receive a separate email notification regarding the update and can contact us at any time for private support directly from the SQLCipher development team. Commercial and Enterprise edition upgrades require a new license code from the SQLCipher fulfillment site for each version. Don’t forget to change the license code in your application(s) when you upgrade.
Community Edition - SQLCipher Community Edition source code is available on GitHub, via AAR packaging for Android, and Swift Package Manager for Apple platforms.
For feedback and questions, please visit our Community Forum or private support channels. Thank you for using SQLCipher!
2026-10-22 08:00:00 -0400
We are pleased to announce the immediate availability of SQLCipher 5.0.0-beta.1. This beta includes two significant changes from SQLCipher 5.0.0-beta and a number of bug fixes identified during testing.
WARNING: This should only be used for beta testing at this time, not in production. It includes major functional, API, and behavioral changes that are NOT COMPATIBLE with SQLCipher 4 and earlier by default.
To recap, the beta includes the following major changes:
See the SQLCipher 5.0.0-beta announcement for additional details.
Changes Between 5.0.0-beta and 5.0.0-beta.1
Codec Architecture
SQLCipher 5.0.0-beta.1 goes back to using the codec architecture for encrypting database pages, journal records, and WAL frames. Following the initial beta round, we determined that the VFS approach’s edge cases, compatibility, and performance characteristics warrant additional consideration before widespread use. The codec approach is very mature and well understood, so sticking with it is the more conservative decision for SQLCipher 5. It has also been reworked to provide more reliable error handling and reporting, bringing it closer to par with the VFS design. This does not mean that the VFS-based approach is abandoned. It will continue to be worked on and evaluated internally for possible future release.
KDF Iteration Changes
The default iteration count for PBKDF2-HMAC-SHA512 has been reduced back down to 256K. That value already exceeds the OWASP recommendation of 220K iterations, and the widespread availability of keystore and keychain APIs means more systems are using high-entropy key material. It did not make sense to impose a default performance penalty by increasing the KDF iterations at this time. High security applications still have an option for increasing KDF iterations when needed for a specific threat model or key material type.
Other Changes
SQLCipher 5.0.0-beta.1 also incorporates several changes found during testing by internal and external beta testers, including:
- Rekey support for databases in WAL mode with concurrent connections
- Journal spill behavior is now locked down to prevent plaintext writes
- Fixed a bug where
cipher_hmac_fast_kdf could write the page HMAC past the reserved area
- Improved error handling and reporting for rekey failures
- Fixed shared cache connections for encrypted databases
- Added
PRAGMA cipher_selftest for verifying internal implementations
Compatibility and Migration
The default v5 database settings are not backwards-compatible with SQLCipher 4 databases. Application code changes are required to take advantage of the new defaults. To open or migrate existing databases, the following options are available:
- Migrate existing databases in place (preserving data and schema) with
PRAGMA cipher_migrate.
- Open older databases without migrating using
PRAGMA cipher_compatibility to adjust settings back to their previous values. For example, to open a SQLCipher 4 database using 5.0.0-beta.1:
PRAGMA key = 'YourKeyGoesHere';
PRAGMA cipher_compatibility = 4;
- Set a default compatibility level for an entire process using
PRAGMA cipher_default_compatibility. All attached databases inherit this setting. For example, to set the process default before opening any encrypted databases:
PRAGMA cipher_default_compatibility = 4;
PRAGMA key = 'YourKeyGoesHere';
- Convert plaintext databases to an encrypted database using the new
PRAGMA rekey support.
Availability
SQLCipher 5.0.0-beta.1 is available for download starting today, separate from the existing SQLCipher 4 releases, so you can begin testing in parallel with your current deployment.
Commercial and Enterprise - Your organization will find the new beta packages on the “Prerelease” tab of the Customer Downloads fulfillment site. Don’t forget to update the license code in your application(s) when you upgrade!
Community Edition - The source for SQLCipher 5.0.0-beta.1 is available at the main repository beta tag on GitHub. SQLCipher for Apple is available from the SQLCipher.swift beta tag. SQLCipher for Android is available as source or a downloadable AAR package from the SQLCipher Android beta tag.
Feedback
We recommend testing this beta thoroughly to prepare applications and identify potential upgrade issues. For the time being, please direct feedback and questions to support@zetetic.net so all beta issues are reported in one place. We appreciate your help validating SQLCipher 5.0.0-beta.1 in advance of an official release at a later date!