If for whatever reason the method
fails to complete, the method will return some text stating exactly
what has gone wrong, if the method runs ok then the output from the
method will = "TRUE". This
method requires the use of a public key ring, you have to specify
the directory in which the public key ring resides though the KeyFolder
property.
You need to specify the file to
encrypt, the SourceFile.
You need to specify where the
result of encrypting the source file will go, the DestinationFile.
You also need to specify what key
to use, this is done through the KeyID
property of the control.
You can optionally specify the
property AsciiArmour
this allows you to control the type of encrypted file to produce,
binary or Ascii (more suitable for emailing for example). If not
specified PGPFileEncrypt will default to 'yes'.
|