Encryption
Posted: Mon 23 May 2016 09:27
Hello
I create a new database and try encryption like described:
Result: Database is not encrypted, I can open it with SQLLiteBrowser without any key.
If doing on an existing database:
it is encrypted but I can not open it with SQLLiteBrowser any more. (maybe pagesize).
It is necessary to encrypt the whole database because it must be sure noone can alter table contents and not delete rows too (point of sale application).
Im using 10 Seattle (with 10.1 Berlin I can not start the application) and test component.
Can you help me?
I create a new database and try encryption like described:
Code: Select all
LiteConnection1.ClientLibrary := ExtractFilePath(ParamStr(0)) + 'sqlite3.dll';
LiteConnection1.Database := ExtractFilePath(ParamStr(0)) + 'test3.db3';
LiteConnection1.Options.ForceCreateDatabase := True;
LiteConnection1.EncryptionKey := '1234';
LiteConnection1.Options.EncryptionAlgorithm := TLiteEncryptionAlgorithm.leBlowfish;
LiteConnection1.Options.Direct := True;
LiteConnection1.Open;
If doing on an existing database:
Code: Select all
LiteConnection1.EncryptDatabase('1234');
It is necessary to encrypt the whole database because it must be sure noone can alter table contents and not delete rows too (point of sale application).
Im using 10 Seattle (with 10.1 Berlin I can not start the application) and test component.
Can you help me?