<< back to sysax.com Product page

12.3. Decrypting Files

The PGPDecrypt method can be used to decrypt files that were previosly encrypted using OpenPGP.

Exhibit 12.5. IDL Definition of method to decrypting files


HRESULT PGPDecrypt ([in] BSTR b_infilename, [in] BSTR b_passphrase, [in] BSTR b_outfilename, [in, defaultvalue("")] BSTR b_keyringfile);


Exhibit 12.6. Example usage of method to decrypting files (VBScript)


app.PGPDecrypt "file.pgp", "mypassphrase", "", ""