Hello,
I have managed to access SQLite database I don't know as to how to access encrypted database. What do we have to do to access it?
TIA
Access encrypted SQLite database
Access encrypted SQLite database
--
Yogi Yang
Yogi Yang
Re: Access encrypted SQLite database
I never attempted to access an encrypted SQLite database but I can see that there is a connection parameter for SQLIte:
// Type: BOOLEAN
// Encrypt connection
ConnProps_Encrypted = 'encrypted';
ZProp_Encrypted: TZProperty = (
Name: ConnProps_Encrypted;
Purpose: 'Use connection encryption?';
ValueType: pvtEnum; LevelTypes: [pltConnection];
Values: cBoolEnum; Default: cBoolFalse; Alias: '';
Providers: (Count: 1; Items: @cSqlite3upProvider);
Protocols: (Count: 1; Items: @cSQLiteProtocol);
);
I'd try to set this on the SQLConnection object (encrypted=true) and use the password property to supply the password.
// Type: BOOLEAN
// Encrypt connection
ConnProps_Encrypted = 'encrypted';
ZProp_Encrypted: TZProperty = (
Name: ConnProps_Encrypted;
Purpose: 'Use connection encryption?';
ValueType: pvtEnum; LevelTypes: [pltConnection];
Values: cBoolEnum; Default: cBoolFalse; Alias: '';
Providers: (Count: 1; Items: @cSqlite3upProvider);
Protocols: (Count: 1; Items: @cSQLiteProtocol);
);
I'd try to set this on the SQLConnection object (encrypted=true) and use the password property to supply the password.
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
-
- Platinum Boarder
- Posts: 1962
- Joined: 17.01.2011, 14:17
Re: Access encrypted SQLite database
I seem to remember that thsi is the correct way to use encryption with SQLite. See viewtopic.php?f=28&t=105825#p136873
We (still) do not support wxsqlite3 encryption.