sqlite3 encryption

38 views
Skip to first unread message

Khalfan Mohamed

unread,
Jan 15, 2025, 12:04:45 PMJan 15
to PHP Desktop
Hello
I want to encrypt my database and I was successfully to encrypt it using sqlcipher but when I try to connect using php, I get this error here

Warning: SQLite3::query(): Unable to prepare statement: file is not a database in C:\Users\NewVemo\Desktop\phpdesktop-chrome-130.1-php-8.3\phpdesktop-chrome-130.1-php-8.3\www\index.php on line 11
Error: Failed to authenticate: Invalid encryption key or database.

How can I manage implementing security to my database?

Czarek Tomczak

unread,
Jan 16, 2025, 3:55:51 PMJan 16
to PHP Desktop
Is the error you get related to phpdesktop or is it general PHP issue? Because it seems a general PHP issue. Make sure your database is compatible with the PHP version shipped with php desktop and its sqlite driver. You can replace PHP binaries shipped with phpdesktop if you need to.
Reply all
Reply to author
Forward
0 new messages