Author Topic: SQlite encrypte database  (Read 1901 times)


  • Sr. Member
  • ****
  • Posts: 347
SQlite encrypte database
« on: July 09, 2017, 08:02:27 pm »
I want to store some information in a SQlite database. I just encrypted the SQLite database with a tool called "DB browser for SQlite". When i want to connect i get a warning: "SQLite3Connection1: file is encrypted or is not a database"
I set the password in the SQLite3Connection1.

Is it possible to open an encrypted SQlite database?


  • New member
  • *
  • Posts: 7
Re: SQlite encrypte database
« Reply #1 on: July 12, 2017, 08:50:09 am »
AFAIK SQLite doesn't support encryption by itself. I think "DB browser for SQlite" encrypts the database file and decrypts it by need. So you've to decrypt the file by yourself first before using it with SQLite3Connection.

Could anyone approve?


  • Hero Member
  • *****
  • Posts: 538
Re: SQlite encrypte database
« Reply #2 on: July 12, 2017, 09:02:42 am »
You may take a look at the SQLite Encryption Extension ( and the SQLite CEROD extension (
I've never used them, but maybe they can give you a clue.
OS: Windows 10 (64 bit) / Ubuntu 19.04 (64 bit)
Laz: Lazarus 2.0.4 FPC 3.0.4 i386-win32-win32/win64