How to decrypt PGP files ?

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

Not open for further replies.
1. Offline

AvinashRRegistered 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?

2. Offline

raspb3rryRegistered 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. Offline

AvinashRRegistered 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.."

4. Offline

raspb3rryRegistered 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. Offline

AvinashRRegistered 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. Offline

raspb3rryRegistered Member

It seems like there's an easier way:

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

AvinashRRegistered Member

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

tobaccoFrequent 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. Offline

raspb3rryRegistered Member

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. Offline

WarlockzRegistered Member

Try gpg4usb

Last edited: Nov 24, 2010
11. Offline

AvinashRRegistered 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. Offline

raspb3rryRegistered 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. Offline

AvinashRRegistered Member

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

GlobalForceRegular 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. Offline

chronomaticRegistered 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.