Encryption SQLite AES-256

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 15
Joined: Fri 26 Nov 2010 15:47

Encryption SQLite AES-256

Post by DmitriNL » Fri 09 Oct 2020 07:48


I am experimenting with encryption on a SQLite database. Using Blowfish works as expected but when I try to set AES-256 an error occurs on closing the application.
Project MyProject.exe raised exception class EInvalidOperation with message 'Cannot call BeginInvoke on a control with no parent or window handle'.

Code: Select all

Connection->ProviderName = "SQLite";
Connection->SpecificOptions->Values["ConnectMode"] = "cmReadWrite";
Connection->SpecificOptions->Values["UseUnicode"] = "True";
Connection->SpecificOptions->Values["Direct"] = "True";
Connection->SpecificOptions->Values["EncryptionAlgorithm"] = "leAES256";
Connection->SpecificOptions->Values["EncryptionKey"] = "11111";
Maybe I missed something or I am doing something wrong? I am using C++ Builder 10.4 and UniDAC 8.2.5. Thank you in advance for your support.


Devart Team
Posts: 1501
Joined: Mon 06 Jul 2015 11:34

Re: Encryption SQLite AES-256

Post by MaximG » Tue 13 Oct 2020 08:32

We tested UniDAC work according to your description and found no problems. For testing we used the latest version of UniDAC 8.3.2. Please make sure that you are using the latest UniDAC version. In this case, if it is so, please compose and send us a small project execution of which causes the issue. For your convenience, please use the e-support form https://www.devart.com/company/contactform.html

Post Reply