1

I have a vendor encrypting an xlsx file using McAfee E-Business server with PGP version 7.1.1 using the following command:

pgp --encrypt --sign --user ${vendorpgpkey} --passphrase InputFilename --force --overwrite --output OutputFilename

I am trying to decrypt the file using the following command.

gpg -d --output "${PGPDecryptedFileName}" "${PGPEncryptedFileName}"

This process works when the vendor is sending me .txt, .csv, or .pdf files. However, if they try to encrypt and send me a .xlsx file, the file is getting corrupted when decrypted.

The vendor is sending the file to me via SFTP using binary transfer.

I can encrypt the file on my local laptop and decrypt it without any issues so I'm assuming it's something related to how the vendor is handling encryption. I also checked Symantec help and couldn't find any leads.

Any help identifying the issue or pointing out additional debugging steps would be appreciated.

Hennes
  • 65,804
  • 7
  • 115
  • 169

1 Answers1

0

These files are really .zip files, so you can try to unpack the .xlsx file like a .zip and try if the password matches the used one. If unpacking will go well then there is problem with the content of the archive. If not - CRC checksum doesn't match the one in the file and you need to get file once again.

pbies
  • 3,550