Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption
Changes encryption of a file within a single file system.
procedure ChangeEncryption(NewPassword: string = ''; NewQuestion: string = ''; NewAnswer: string = '');
Call ChangeEncryption to encrypt or decrypt a file within a single file system, 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.
The NewQuestion parameter indicates a question that may be asked if a user forgot his / her password to recover the password. If NewQuestion is blank then a previous value of control question is removed.
The NewAnswer parameter indicates an answer that must be given by a user to recover his/her forgotten password. If NewAnswer is blank then a previous value of control answer is removed.
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.