GPG files won't decrypt on iMac, why?

Discussion in 'Windows, Linux & Others on the Mac' started by 2012Tony2012, Apr 26, 2014.

  1. 2012Tony2012 macrumors 6502a

    2012Tony2012

    Joined:
    Dec 2, 2012
    #1
    I installed GPGTools on my iMac, and then tried to decrypt gpg files that I created on my other machine.

    I am able to decrypt the gpg files on my Linux Mint machine and even on an MS Windows machine. But on the iMac, they won't decrypt.

    I am trying to decrypt using Terminal: gpg -d filename.gpg

    It seems to decrypt the files a bit, but terminates before writing the output file.

    Any advice?
     
  2. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #2
    Dumb question but did you import the private keys?
     
  3. 556fmjoe macrumors 65816

    556fmjoe

    Joined:
    Apr 19, 2014
    #3
    What option did you use to encrypt the files?

    Code:
    gpg -c file.txt
    will perform symmetric encryption of file.txt and will ask for a passphrase. You only need to enter the passphrase to decrypt it.


    Code:
    gpg -e file.txt
    will encrypt file.txt using a asymmetric/symmetric hybrid crypto scheme. It will ask you for a recipient ID and will then encrypt file.txt using the public key of the recipient you specify. You will need the private key available on your machine to decrypt it.

    If you used the second option, you will have to bring the private key over to the other computer and import it.


    edit: If it terminates before writing an output file, try this

    Code:
    gpg -d -o file.txt file.gpg
    This will write the output of the decrypted file.gpg to file.txt rather than simply displaying it on the terminal.
     
  4. 2012Tony2012, Apr 26, 2014
    Last edited: Apr 26, 2014

    2012Tony2012 thread starter macrumors 6502a

    2012Tony2012

    Joined:
    Dec 2, 2012
    #4
    Sure did :) Secret key imported:)

    Interestingly, I can even see some text inside some gpg files as it's decrypting in terminal screen, but the hear a beep sound and the decrypted gpg file is not finalised and written.

    It's really weird.

    Using gpg -d filename.gpg in terminal, what other way can I try?

    BY the way, all the files I want to decrypt are ZIP files, e.g budgetexcellfiles.zip.gpg

    Any help please?
     
  5. 2012Tony2012, Apr 26, 2014
    Last edited: Apr 30, 2014

    2012Tony2012 thread starter macrumors 6502a

    2012Tony2012

    Joined:
    Dec 2, 2012
    #5
    Thank you, that works great, I now use this command:

    gpg -d -o file.zip file.gpg
     

Share This Page