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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
To view the keys known by gpg run:
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
-r is for
--recipient and is optional. It will prompt you for more input if needed.