EasyTable: Single-File Embedded BDE Replacement
Database for Delphi and C++Builder
Changes encryption of a database file.
function ChangeEncryption(NewPassword: string = '' ): Boolean;
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.
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.