Page 1 of 1

Database encryption

Posted: Mon 15 Jul 2013 03:02
by FerCastro
Hello

i´m using the last trial version of Unidac. Actually i am testin this code:

LiteConnection.Database := 'C:\sqlite.db3';
LiteConnection.Options.ForceCreateDatabase := False;
LiteConnection.Options.Direct := True;
LiteConnection.Options.EncryptionAlgorithm := laBlowfish;
LiteConnection.EncryptionKey := '';
LiteConnection.Open; database
LiteConnection.EncryptDatabase ('11111');

As in the chm file. But I get the following error:

[DCC Error] FMain.pas(35): E2003 Undeclared identifier: 'leAES128'

Is there a file am i missing? Anyway, if I declare the algorythm in the visual properties of the object, and after the creation of the database, if I try to open the database encrypted with a thir party font end, i have no problem to open the file, i mean, it seems there is not password or protection.

thanks in advance

Re: Database encryption

Posted: Mon 15 Jul 2013 06:56
by AlexP
Hello,

To solve the problem, you should add the LiteCall module to the uses section of your module.