LiteDAC

TLiteConnection.EncryptDatabase Method

Encrypt the connected database with the encryption key specified.

Class

TLiteConnection

Syntax

procedure EncryptDatabase(NewEncryptionKey: string);

Parameters
NewEncryptionKey
Holds the encryption key to encrypt the database.

Remarks

When working in the Direct mode , the TLiteConnectionOptions.EncryptionAlgorithm property should be used to specify the encryption algorithm to encrypt the database .

Otherwize, the appropriate encryption support has to be implemented in the SQLite client library that is used by TLiteConnection.

Note: The EncryptDatabase method can be used only for the already connected database.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback