up vote 1 down vote favorite

Hello, 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?

Thanks!

link|flag

migrated from stackoverflow.com

1 Answer

up vote 4 down vote

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|flag

Your Answer

get an OpenID
or
never shown

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