How to decrypt PGP files ?

Discussion in 'privacy technology' started by AvinashR, Nov 23, 2010.

Thread Status:
Not open for further replies.
  1. AvinashR

    AvinashR Registered Member

    Hi Guys,

    I am having a problem with PGP files. I am unable to find out how to decrypt PGP encrypted files? I need to decrypt some of the PGP files. I do have the public of the owner who encrypted these files, but the guy is from China and i am unable to understand his terrible English.

    So it would be great if somebody tell me "How to decrypt PGP encrypted files?" and also do let me know which software i can use and how can i create my own PGP Key?

    Looking for your response.
  2. raspb3rry

    raspb3rry Registered Member

    You could try using the GUI-tool called The GNU Privacy Assistant.
    It is a frontend for the gpg-program, which is 100% compitable with OpenPGP.
    It seems to be the easiest way to encrypt/decrypt files, without using the commandline.
  3. AvinashR

    AvinashR Registered Member

    Thanks for the software. But please let me know how to decrypt the PGP file? Should i use my own PGP key or the owner's public PGP key? Secondly i am not aware "How to create my own PGP key.."

    Please let me know ...
  4. raspb3rry

    raspb3rry Registered Member

    Do you have a PGP key?
    Otherwise I'm quite sure that you can make one in the program I linked to.

    When encrypting files with PGP/GPG you would normally use the public key of reciever, which in this case is you. The public key allows everyone to encrypt files, that only you and your secret key can decrypt.

    However, PGP/GPG does also support symmetrical encryption, in which case you should be able to decrypt the file this way:
    1) Press WIN+R
    2) Type "cmd" and press enter.
    3) Make sure that you have gpg installed.
    4) Type gpg --decrypt-files C:\path\to\encrypted\file
    5) Type in the password that the sender used to encrypt the file.
    6) The file should be decrypted now.

    Encrypted PGP-files usually have the extensions *.pgp, *.gpg or *.asc.

    Please note that you would need to know the password/-phrase that the sender have used to encrypt the file.
  5. AvinashR

    AvinashR Registered Member

    Thanks bro.

    I have the password/-phrase that sender/owner used to encrypt the file. I will try to decrypt with your steps. If i won't succeed i will ask you furthermore.
  6. raspb3rry

    raspb3rry Registered Member

    It seems like there's an easier way:

    In step 4, it should be possible to just write:
    gpg C:/path/to/encrypted/file
    I'm running Linux, so please excuse me. This should work in Windows too.
  7. AvinashR

    AvinashR Registered Member

    Unable to perform this.. How can i install the software? There is no option in it to install :(
  8. tobacco

    tobacco Frequent Poster

    Look through the secure email threads available in this section. You can use a simple program like "InstantCrypt" and have it create a public/private key for you. Send your public key to your contact and ask him/her to resend the email encrypted with your public key which IC will decrypt for you.
  9. raspb3rry

    raspb3rry Registered Member

    ...Or download the latest version of gpg here:

    When you've installed that, you should be able to follow my steps in the previous posts.
    Last edited by a moderator: Nov 23, 2010
  10. Warlockz

    Warlockz Registered Member

    Try gpg4usb

    Last edited: Nov 24, 2010
  11. AvinashR

    AvinashR Registered Member

    Done everything.. Installed GPG4WIN and tried to decrypt it, but all in vain. I have owners public key but i am not sure how if i am doing the right thing or not. I have already import his key and make it "Ultimate Trusted" and use it again to decrypt the file.

    Lemme tell you that the file is about 863 MB and every time i am trying to decrypt it, it shows verification failed. :(
  12. raspb3rry

    raspb3rry Registered Member

    Have you and your chinese friend compared the md5-hashes of the encrypted file? Some data could have been lost during the transfer, resulting in corrupt data...
  13. AvinashR

    AvinashR Registered Member

    Yeah i am also looking that thing too. Lemme get back to you guys after confirming this ...
  14. GlobalForce

    GlobalForce Regular Poster

    Keep in mind Avinash - "Send your public key to your contact and ask him/her to resend the email encrypted with your public key."
  15. chronomatic

    chronomatic Registered Member

    You cannot decrypt the file with his public key. It doesn't work that way.

    First of all, as was stated above, it depends on how the guy encrypted the file. Did he use the symmetric or asymmetric method? If he used YOUR public key to encrypt the file (which is usually how it's done), then all you need is your private key. If he just encrypted it symetrically (with a passphrase), you need the passphrase.
Thread Status:
Not open for further replies.