GPG gives wierd data when trying to decrypt

Michael Fuhr mfuhr at fuhr.org
Fri Apr 6 11:34:44 CEST 2007


On Thu, Apr 05, 2007 at 09:19:33PM -0700, Rocko wrote:
> When i try to decrypt a file the letters in the terminal window get
> crazy.
> its like they become encrypted, or maybe the terminal is displaying the
> encrypted file in the window, i really don't know.
> all i know is i can't decrypt any files that i've encrpyted.
> 
> using gpg --decrypt filename
> on Unbuntu Dapper

Does the original file contain binary data?  Are you using symmetric
or public-key encryption?  Could you show the encryption command?
If you redirect standard output, do you get any errors?

gpg -d filename > filename.decrypted

What do you get for the following?

echo test | gpg -c | gpg -d

You should be prompted twice for the encryption passphrase, then
prompted for the decryption passphrase.  The final output should
look like this:

gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
test
gpg: WARNING: message was not integrity protected

-- 
Michael Fuhr



More information about the Gnupg-users mailing list