I am working on a file processing automation program. One of the function is to decrypt pgp file. I am using a code snippet written by maruthi pallamalli (
https://code.msdn.microsoft.com/windowsdesktop/Pretty-Good-Privacy-using-4f473c67#content) to do the decryption. However, I am having problem determiningenter code here
the original file type dynamically so I can set the correct output file path.
public static void Decrypt(Stream inputStream, Stream privateKeyStream, string passPhrase, string **outputFile**)
{
try
{
PgpObjectFactory pgpF = null;
....
}
}