8

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 for in my keychain. How can I decrypt it?

4

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.

  • 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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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