Help with decrypting gpg file

Erik Lotspeich erik at lotspeich.org
Tue Aug 25 22:58:01 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi John:

I would just do this:

gpg --decrypt input.pgp > output.txt

Let gpg prompt for your passphrase.  That way, your passphrase is not
part of bash history.

If that doesn't work, let us know what error messages are you getting
from GnuPG.

Regards,

Erik.

John Betz wrote:
> I was hoping to get some help with decrypting an archived file. I am
> using the following command:
> 
>  
> 
>  
> 
> echo “passphrase”| gpg --passphrase-fd 0 -o output.txt -d input.pgp
> 
>  
> 
>  
> 
> The output file is created with no problem, however, there is garbage in
> the first record. If I rename the file (or create it) with a .zip
> extension and try to open it with WinZip it does not recognize the file
> as an archive file. When I do the same operation with PGP there is no
> problem.
> 
>  
> 
> I have scoured the documentation looking for the correct command or
> option for indicating to gpg that the file is an archive file, but no to
> no avail. Any help I can get with this would be appreciated.
> 
>  
> 
> Thanks,
> 
>  
> 
> John Betz
> 
> (office) 703-490-3227
> 
> (cell) 703-304-2536
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkqUUFkACgkQY21D/n6bGwccEwCdEV0axWKmHKn8wnx3v1ay9qy2
o3EAoLKmmya6zYNyU/V7xLYQOO3Ld18E
=905O
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list