EasyTable: Single-File Embedded BDE Replacement
Database for Delphi and C++Builder


TEasyDatabase.ChangeEncryption
TEasyDatabase
Top 

Changes encryption of a database file.

function ChangeEncryption(NewPassword: string = '' ): Boolean;

Description
Call ChangeEncryption to encrypt or decrypt database file, or to change its password.

The NewPassword parameter value different from default blank string indicates that the data is to be encrypted by this password. If NewPassword is blank then the file is decrypted.

Result is True if change encryption process was successful and False otherwise.

Note:
Changing encryption process may take a long time if you work with large data. You may set the OnProgress event handler to provide the user with a feedback about the progress of the potentially slow process.


© AidAim Software EasyTable: Easytable Bde Alternative Single File Delphi Databas