Hi, all experts,
We have a VB 6 program which triggers PGP 8.0.3 to encrypt all types of files. This program uses nsdpgp3.dll and nsdpgp3x.dll.
Now we encounters 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?
Does it have any contraint to use nsdpgp3.dll and nsdpgp3x.dll on Excel file??
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 have a VB 6 program which triggers PGP 8.0.3 to encrypt all types of files. This program uses nsdpgp3.dll and nsdpgp3x.dll.
Now we encounters 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?
Does it have any contraint to use nsdpgp3.dll and nsdpgp3x.dll on Excel file??
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)