Native SQLCipher version 4 database adapter for Cordova/PhoneGap applications on Android, iOS, and macOS platforms, based on cordova-sqlite-storage. Version 0.6.0 is stable but in maintenance-only mode (no active development). It provides an HTML5 Web SQL API-compatible interface with encrypted SQLite databases via SQLCipher. Key differentiators include free MIT license (with Apache 2.0 option for Android) and support for multiple platforms, but it suffers from known limitations: multiple SQLite corruption problems, Windows 10 UWP support disabled, and armeabi CPU support dropped. Alternative plugins with commercial licenses offer lighter resource usage. Breaking changes are pending in an upcoming major release.
npm install cordova-sqlcipher-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Opens an encrypted SQLite database with SQLCipher, creates a table, inserts a row, and queries it using both transaction and batch execution.
Consider using alternative plugins (cordova-sqlite-evcore-extbuild-free or commercial) or upgrading to upcoming major release (if available).
Use a different Cordova SQLite plugin for Windows or target Android/iOS/macOS only.
Update target Android to 5.0+ or use armeabi-v7a compatible device.
Always backup the password and ensure it is safely stored (e.g., using device secure storage).
Adapt error handling to rely on message strings rather than error codes.
Run: cordova plugin add cordova-sqlcipher-adapter
Wrap calls in document.addEventListener('deviceready', ...) and rebuild platform.Pass {name: 'db', key: 'yourPassword'} to openDatabase.