sqlite-cipher v0.3.6 is a Node.js module for handling encrypted SQLite databases with sync and async operations. It supports opening, creating, encrypting, and decrypting databases using a wide range of encryption algorithms from OpenSSL (e.g., aes-256-ctr). The API mirrors sqlite-sync.js. It relies on Node.js crypto rather than SQLite's built-in SEE extension. Currently no active updates (last release 2017); consider using `better-sqlite3` with encryption or `sqlcipher` for production.
npm install sqlite-cipherNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quickstart showing connect, create table, insert, query, close, encrypt, and decrypt with sqlite-cipher.
Use a maintained alternative like better-sqlite3 with sqlcipher or sql.js with encryption.
Migrate to an actively maintained library.
Always provide a password as second argument. Use process.env to store it.
Install sqlite-sync manually: npm install sqlite-sync
Use const sqlite = require('sqlite-cipher'); then sqlite.connect(...)