This will encrypt a whole file using the given password. This encryption is reversible, use the DecryptFile() function to decrypt a file encrypted with this function. Note that no check is performed, whether the given file is already encrypted, hence it's possible to enrypt a file multiple times.
SYNTAX:
error% = EncryptFile% (file$, pass$)
INPUTS:
file$ (STRING)
- Any existing file, with full path if required. An empty file$ or not existing file results into error DES56_ERROR_NOACCESS.
pass$ (STRING)
- Any password as literal or variable. An empty password will result into error DES56_ERROR_NOPASS.
RESULT:
error% (INTEGER)
- Zero on success, else any error defined in file des56.bi.
- See also page Common Info.