Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed the command line version of pgp and I received a .pgp file and its key in a .asc file.

How can I decrypt the pgp file using command line and the asc key?

share|improve this question

migrated from Sep 24 '09 at 21:37

This question came from our site for professional and enthusiast programmers.

For GnuPG, it's done like this.

Import the key:

gpg --import key.asc

Decrypt the file:

gpg --decrypt file.pgp

For PGP Command Line, it's mostly the same:

pgp --import key.asc
pgp --decrypt file.pgp
share|improve this answer

You must log in to answer this question.