Official‑style build • Portable Windows EXE
Migrate SQLite databases to SQLCipher — Step‑by‑Step
Follow a safe, consistent process to migrate from plain SQLite to SQLCipher using the portable Windows build of DB Browser. Standardize parameters, import data reliably, verify integrity, and avoid “wrong key” or performance regressions.
All downloads are consolidated on the Download page and protected by a CAPTCHA gate. No direct file links are exposed on this site.
Before you start
- Back up the original database (e.g.,
data.bak.sqlite) and keep it offline. - Optionally compute and store a checksum (SHA‑256) to verify backup integrity.
- Standardize the SQLCipher parameters your team will use across databases.
- Download and extract the portable build → Download. Run it once to clear SmartScreen/AV prompts.
Migration steps
- Create a new encrypted database — In DB Browser choose File → New Database…, set a strong passphrase, and confirm cipher parameters before saving.
- Align SQLCipher parameters — Reopen and confirm page size, KDF and HMAC settings match your standard. Adjust via PRAGMA commands if needed.
- Import schema and data — For small DBs, export SQL and execute on the new DB. For large datasets consider chunked CSV import.
- Verify integrity — Close and reopen with the same key; browse tables, compare row counts, and run integrity checks.
- Swap in production — Replace the old file once verified. Retain backups and update apps to use the correct passphrase and parameters.
If you encounter a “wrong key” error, see Wrong key errors and revisit SQLCipher basics — it usually indicates a parameter mismatch.
Troubleshooting & common pitfalls
- “file is not a database” — Make sure you opened the main
.sqlitefile (not WAL/SHM). - “wrong key” — Ensure page size, KDF and HMAC settings match the database; confirm passphrase; see Wrong key guide.
- Performance regressions — Review PRAGMAs, run VACUUM/ANALYZE post‑import, and consider indices.
- SmartScreen/AV — Unblock in file properties or whitelist the portable EXE after first run.
- Backups & rotation — Keep encrypted backups safe; rotate passphrases periodically following security best practices.
Encrypt / Decrypt
Create encrypted DBs, rotate passphrases, and decrypt safely during migrations.
How to Encrypt
Open encrypted DB
Pick the right parameters to open existing SQLCipher databases without errors.
Open DB Guide
Get the portable build
All downloads go through a CAPTCHA gate for safety — no direct links exposed.
Download (Portable)