Hi, all experts,
We use VB 6 to trigger PGP 8.0.3 to encrypt all types of files.
Now we encountered a problem: One Excel file abc.xls was conventionally encrypted to abc.pgp by our VB program. We can decrypt it manuallly with PGP 7 or PGP 8.0.3. But we can not open the decrypted Excel file with error msg as below:
"'abc.XLS' cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is sored on may not be responding."
If we MANUALLY encrypted the Excel file, after we decrypted the PGP file, we have no problem to open it.
Does anyone know where the problem is and how to fix it?
Thanks!!!!!
Below are the VB codes to do the PGP Conventional encryption:
============================
vPharseStr = "xyzxyz"
PInFile= "abc.xls"
POutFile = "abc.PGP"
Call PPGPRef.ConventionalEncryptFile(PInFile, POutFile, _
TEXT_FILE, TEXT_FILE, CAST5, vPharseStr)
We use VB 6 to trigger PGP 8.0.3 to encrypt all types of files.
Now we encountered a problem: One Excel file abc.xls was conventionally encrypted to abc.pgp by our VB program. We can decrypt it manuallly with PGP 7 or PGP 8.0.3. But we can not open the decrypted Excel file with error msg as below:
"'abc.XLS' cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is sored on may not be responding."
If we MANUALLY encrypted the Excel file, after we decrypted the PGP file, we have no problem to open it.
Does anyone know where the problem is and how to fix it?
Thanks!!!!!
Below are the VB codes to do the PGP Conventional encryption:
============================
vPharseStr = "xyzxyz"
PInFile= "abc.xls"
POutFile = "abc.PGP"
Call PPGPRef.ConventionalEncryptFile(PInFile, POutFile, _
TEXT_FILE, TEXT_FILE, CAST5, vPharseStr)