Support for DB with SQLCipher encryption

Post Reply
innovativeshadow
User
Posts: 86
Location: Almaty, Kazakhstan

Support for DB with SQLCipher encryption

Post by innovativeshadow »

It would have been great if you could support SQLCipher encrypted DB.

This keeps many away from using the SQLite DB freely like other databases.

arbei
User
Posts: 9384

Post by arbei »

I wonder how you connect to SQLCipher with PHP? php_pdo_sqlcipher?

innovativeshadow
User
Posts: 86
Location: Almaty, Kazakhstan

Post by innovativeshadow »

need to pass PRAGMA key before connect. Then need to connect.

PRAGMA key = 'passphrase';

arbei
User
Posts: 9384

Post by arbei »

Problem is, you need a PHP extension that supports SQLCipher. What PHP extension do you use? Did you mean you can use pdo_sqlite (https://www.php.net/manual/en/ref.pdo-sqlite.php) to connect to SQLCipher encrypted database by executing PRAGMA key = 'passphrase'? Can you post your PHP code?

Webmaster
User
Posts: 9427

Post by Webmaster »

pdo_sqlite does not support SQLCipher. However, from v2021, PHPMaker supports encrypted connection with MySQL/PostgreSQL.

Post Reply