Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Remember this little guy over here?

He's no longer with us in Ubuntu 11.10. Now, a friend's sent me an encrypted file using a public key I think I have the key fore in my keychain. How can I decrypt it?

share|improve this question

1 Answer 1

To view the keys known by gpg run: gpg --list-keys

Assuming the key pair is still in your system, open a terminal and do:

 gpg -d FILE.pgp

You may get a password prompt if the key requires it.

To encrypt a file, you can do:

gpg -e -r NAME FILE

The -r is for --recipient and is optional. It will prompt you for more input if needed.

share|improve this answer
    
So the option via nautilus is gone and will be gone? I had the same question and the terminal is not a good alternative for me. –  Timo Schneemann Dec 8 '11 at 16:39
1  
This can be scripted (note the paths will be different now) fairly easily if you wanted to restore something like the original. –  Oli Dec 21 '11 at 2:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.