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?