SQLCipher on Windows • GUI walkthrough

Encrypt and Decrypt SQLite Databases

Use the portable Windows build of DB Browser to create encrypted SQLite databases (SQLCipher), open existing ones with a key, change the key, and decrypt back to a plain SQLite file.

Create an encrypted database

1
Start a new DB

Go to File → New Database, choose a folder and file name.

2
Set an encryption key

When prompted, enter a strong passphrase. Use long, unique phrases (12+ characters).

3
Confirm and save

Save the new database. Reopen it to verify the key works.

Open an encrypted database

1
Open the file

Use File → Open Database and select the encrypted file.

2
Enter your key

Provide the correct passphrase. If advanced SQLCipher parameters are available, ensure they match the DB you are opening.

3
Access your data

If the key and parameters match, tables and data will load normally.

Change the encryption key (rekey)

1
Open your DB

Open the database with the current key. Back up your file first.

2
Change the key

Use the change password dialog if your build provides it. Otherwise, export→import into a new encrypted DB using the new passphrase.

3
Verify and clean up

Reopen the DB with the new key and remove temporary files once confirmed.

Decrypt to plain SQLite

1
Open with the key

Open the encrypted DB with your current passphrase.

2
Export to SQL

Use Export → Database to SQL to create a dump of the schema and data.

3
Import into a plain DB

Create a new plain SQLite DB and import the SQL dump. For more scenarios, see Migrate.

Compatibility tips (SQLCipher)

  • Ensure the SQLCipher version matches between tools. Version mismatches can trigger "file is not a database".
  • Advanced parameters such as KDF iterations and page size may differ across versions. Use the same settings to open an existing file.
  • When unsure, try opening the DB in the same tool and build that created it, then export/import to migrate.
  • Always keep backups before rekeying or converting encrypted databases.
  • See Troubleshooting for detailed error fixes.

Next steps

Page last modified: --
|