DecryptFile Method

Object: FileManager
Syntax: objFileManager.DecryptFile ([in] InFilename, [in] OutFileName, [in] Password, [in, optional, defaultvalue(1)] saEncType)
Description: This method decrypts the file specified by InFileNameand saves the result to the OutFileNamelocation. If the password is incorrect, the file will be saved as OutFileNamebut the decryption will fail.

FileManager allows you to select either TwoFish or RSAencryption. TwoFish encryption is 128-bit. RSA encryption is either 40-bit or 128-bit, depending on the system. To determine whether the system supports 128-bit encryption, check Internet Explorer's "About" (in IE's Help menu).

DecryptFile Parameters
InFileNameThe encrypted file
OutFileNameFileManager will save the decrypted file to this location
PasswordThe password set by Encrypt or EncryptFile. If the password is incorrect, the file will be saved as OutFileNamebut the decryption will fail.
saEncTypeThe encryption type, which may be either TwoFish encryption, or CryptoAPI. Assign saEncTypeby name or number:

      1   SARSA
      2   SATWOFISH
      3   SARSAHIGH
      4   SARSALOW


Copyright © 2010 SoftArtisans, Inc. All rights reserved.