Cannot encrypt/decrypt zip-Files correctly (Andreas)
Tue Jun 4 23:02:06 2002
I missed the -a flag on the first read. So, the encrypted file could be
ftp'ed as ASCII as the -a does give the ASCII armoring.
However, the important piece is that the file (before encryption and after
decryption) is a gzipped file. Now, unless somebody can show me a new flag
for gzip, all such files are binary even though you start with ASCII text
files. So, Andreas was looking at a gzipped file and wondering why it
looked funny. If he had uncompressed it after decrypting then it would have
looked like his original file.
Now, gpg does do it's own compression so it generally wouldn't be a good
idea to compress files with some other utility prior to feeding them to gpg.
But, I can think of some reasons why that might be desirable (disregarding
any side affects of attempting to compress an already compressed file).
PS None of the "desirable" reasons will hold water for a purist.
From: Peter T. Abplanalp [mailto:email@example.com]
Sent: Tuesday, June 04, 2002 11:18 AM
Subject: Re: Cannot encrypt/decrypt zip-Files correctly (Andreas)
don't you have to specify ascii armoring on the command line tho?
andreas doesn't do that in his command line. or is gpg smart enough
to ascii armor a .txt output file based on extension?
On Tue, Jun 04, 2002 at 10:50:05AM -0700, Leigh S. Jones, KR6X wrote:
> Don't be deceived by incorrect answers.
> ASCII-armored outputs from encrypted binary files are perfectly OK. They
> the full 8 bit binary content of the input file converted to the text
> format. The
> method for doing this was long established before PGP/gpg were created.
> data is lost or corrupted by stripping the high order bit from
> outputs; tarfiles may be damaged by transport in ASCII mode with ftp, but
> armored gpg outputs are ftp safe, even if the original data is binary.
> lies elsewhere.
> ----- Original Message -----
> From: <firstname.lastname@example.org>
> To: <email@example.com>
> Sent: Tuesday, June 04, 2002 09:18
> Subject: Cannot encrypt/decrypt zip-Files correctly
> > Hi!
> > I?ve got a strange problem. I try to encrypt a gz-file on my Linux
> > using GPG, and download the encrypted file, and decrypt it with WinPT on
> > PC(Win2K).
> > That`s what I?ve tried in SHELL:
> > (17:23:59) [webseite] gpg -o out.txt -a -e --default-recipient akorthaus
> > mysql.zip
> > in the same way I encrypted html-files which I could decrypt without any
> > problems.
> > Now I open out.txt and copied the code to my clipboard. After that I
> > WinPT and decrypted the code from clipboard, that worked correctly, but
> > result was:
> > Zip!
> > As I allready said - the same way worked with html Files!
> > What could be the problem, or how can I decrypt complete files using
> > cu
> > Andreas
> > _______________________________________________
> > Gnupg-users mailing list
> > Gnupgfirstname.lastname@example.org
> > http://lists.gnupg.org/mailman/listinfo/gnupg-users
> Gnupg-users mailing list
Gnupg-users mailing list
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.