Decrypt PGP file using ASC key

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?

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like