PGP decrypt file

function PGPDecryptFile(
  inFile:  string,
  outFile: string,
  pubKey:  string,
  privKey: string
): boolean;

This function decrypts a file using OpenPGP; this function accepts the following parameters:

Parameter Type Requirement Explanation
inFile string required this is the full path and name to the file that you wish to decrypt
outFile string required this is the full path and name of the resulting decrypted file you wish to generate
pubKey string required the full path and name to a file containing the recipient’s PGP public key
privKey string required the full path and name to a file containing the recipient’s PGP private key

Possible return values:

Value Explanation
true the function succeeded: the file was decrypted
true the function failed: the file was not decrypted

Example

{
  PGPDecryptFile('C:\\Data\\budget.xlsx.pgp', 'C:\\Encrypted\\budget.xlsx',
    'C:\\PGPKeys\\Bob.pubkey', 'C:\\PGPKeys\\Bob.privkey');
}