Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption


TSingleFileSystem.RestorePasswordByControlAnswer
TSingleFileSystem
Top 


Restores a password for encrypted file if control answer is valid.

function RestorePasswordByControlAnswer(FileName: string; Answer: string; var Password: string): Boolean;

Description
Restores a password for encrypted file if control answer is valid.
RestorePasswordByControlAnswer returns True if the answer for a given control question is correct. Then the Password parameter contains restored password.
If the answer is not correct, the function returns False.

Note:
Use this function to provide user a possibility to restore password if he / she forgot it, but remembers an answer to a control question.


© 2000-2004 AidAim Software LLC Single File System: