Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Conexión con bases de datos (https://www.clubdelphi.com/foros/forumdisplay.php?f=2)
-   -   Crear y encriptar una db SQLite con UniDac (https://www.clubdelphi.com/foros/showthread.php?t=90558)

wilcg 11-07-2016 04:15:51

Crear y encriptar una db SQLite con UniDac
 
Hola amigos del foro, quisiera que me den una manito con este problema.
Necesito crear un base de datos SQLite y al mismo tiempo encriptarlo en tiempo de ejecucion,
estoy usando los componentes TUniConnection de UniDac.

Código Delphi [-]
with UniConection do
begin
  ProviderName := 'SQLite';
  database     :=  edtDirectorio.Text + '.db';
  SpecificOptions.Values['ForceCreateDatabase'] := 'True';
  SpecificOptions.Values['Direct'] := 'True';
  SpecificOptions.Values['EncryptionAlgorithm'] := 'leBlowfish';
  SpecificOptions.Values['EncryptionKey'] := '';
  Open;
  TLiteUtils.EncryptDatabase( BaseDatos, edtClave.Text );
end;

Estoy intentando asi, pero no resulta.


La franja horaria es GMT +2. Ahora son las 09:39:55.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi