Database encryption

Discussion of open issues, suggestions and bugs regarding LiteDAC (SQLite Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 47
Joined: Mon 26 Jun 2006 17:32
Location: México City

Database encryption

Post by FerCastro » Mon 15 Jul 2013 03:02


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

Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Database encryption

Post by AlexP » Mon 15 Jul 2013 06:56


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

Post Reply