PGP Command Line Decryption --- How to decrypt file?
Posted
by whitman6732
on Stack Overflow
See other posts from Stack Overflow
or by whitman6732
Published on 2010-03-24T01:01:32Z
Indexed on
2010/03/24
1:03 UTC
Read the original article
Hit count: 543
I was sent a public key in order to decrypt a pgp-encrypted file. I imported the key with:
gpg --import publickey.asc
And verified it with
gpg --list-keys
Now, I'm trying to decrypt the file. I put the passphrase in a file called pass.txt and ran this at the command line:
gpg --passphrase-fd ../../pass.txt --decrypt encryptedfile.txt.pgp --output encryptedfile.txt
All it says is: Reading passphrase from file descriptor 0 ...
And doesn't seem to be doing anything else. I can't tell if it's hanging or not. Is it a relatively quick process? The file is large ( about 2 GB ). Is the syntax for it correct?
© Stack Overflow or respective owner