Endpoint Encryption

 View Only
  • 1.  PGP command line decrypt adding characters to file name

    Posted Sep 12, 2014 02:30 PM

    I am attempting to decrypt a file from a vendor with pgp command line 10.3.1.  The file contents decrypt correctly but the filename has a bunch of characters inserted into it as so:

     

     

    /opt/pgp/bin/pgp --decrypt Hires-09112014.csv.pgp --passphrase "<passphrase>"

    Hires-09112014.csv.pgp:decrypt (3177:message signed by key ID 0x8804DC89)

    Hires-09112014.csv.pgp:decrypt (3038:signing key 0x8804DC89 <keyname>)

    Hires-09112014.csv.pgp:decrypt (3040:signature created 2014-09-11T21:01:55-06:00)

    Hires-09112014.csv.pgp:decrypt (3170:signature hash SHA-1)

    Hires-09112014.csv.pgp:decrypt (3035:good signature)

    Hires-09112014.csv.pgp:decrypt (0:output file Hires-091120146091629339472297112.csv)

     

    So Hires-09112014.csv.pgp becomes Hires-091120146091629339472297112.csv when decrypted, no idea why.  Can someone explain how to fix?

     

     

     



  • 2.  RE: PGP command line decrypt adding characters to file name

    Posted Sep 12, 2014 03:34 PM

    I would suspect that the file may have been renamed after encryption.  If the file was renamed after it was encrypted, it can revert back to the original filename when decrypted unless you specify the output name using the --output command.

    Check with the vendor to see if they rename the files before sending them.



  • 3.  RE: PGP command line decrypt adding characters to file name

    Posted Sep 12, 2014 04:07 PM

    Arrggg, you are correct, they renamed the file after encryption.  I have not run into that before, thanks for pointing me in the right direction.



  • 4.  RE: PGP command line decrypt adding characters to file name

    Posted Sep 12, 2014 04:48 PM

    Not a problem!  Glad I could help.  It's actually a more common issue than you might think, so having it here on the forum might make it easier to find for others with the same question.