up vote 2 down vote favorite
share [g+] share [fb]

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?

link|improve this question
feedback

migrated from stackoverflow.com Sep 24 '09 at 21:37

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

1 Answer

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
link|improve this answer
feedback

Your Answer

 
or
required, but never shown