losing meaningful whitespaces in an encrypted file

David Shaw dshaw at jabberwocky.com
Tue Sep 11 02:55:12 CEST 2007


Again, this is not a bug, but a documented part of the protocol.
There are ways around it, and the details on this will be changing in
the future, but at least for today, if you send files as text, you
will lose end-of-line whitespace.

David

On Thu, Sep 06, 2007 at 10:52:18AM -0400, Paladino, Vanda K wrote:
> Thanks for your quick replies.  I actually drafted that message last
> week but just managed to get it to go through today, so I do have some
> more information.
> 
> I've gotten someone over here to help me a  bit, and we've run some
> tests.
> 
> Our file is being encrypted with gpg version 1.2.6
> 
> We had them send us an encrypted file and we decrypted it using gpg
> version 1.4.5 and the spaces were missing.  We decrypted it with PGP as
> well, and the spaces were also missing, not sure what version of PGP
> that was, I can find out.
> 
> I did originally go to the PGP people for help, and they, of course,
> sent me over here :)
> 
> But it is starting to seem like the problem is on our side, which would
> be the gpg side of the issue.
> 
> Vanda
> 
>  
> 
> -----Original Message-----
> From: Robert J. Hansen [mailto:rjh at sixdemonbag.org] 
> Sent: Thursday, September 06, 2007 10:41 AM
> To: Paladino, Vanda K
> Cc: gnupg-users at gnupg.org
> Subject: Re: losing meaningful whitespaces in an encrypted file
> 
> paladino wrote:
> > When I look at the file here, immediately before it is encrypted, the 
> > 13 white spaces are still there. When I look at the file at the 
> > vendor, immediately after decryption, the 13 spaces are gone.
> 
> Have you tried a test decryption on your end?  E.g., encrypt the file
> with your own public key and then decrypt that, and see whether the 13
> spaces are present?
> 
> Also, version numbers would be very useful--both GnuPG on your end and
> PGP on the vendor's end.
> 
> This may very well be a PGP problem as opposed to a GnuPG problem, in
> which case you may be better served on a PGP list such as PGP-Basics at
> Yahoo! Groups.
> 
> > Is there anything obvious that could be causing something like this?  
> > Which end is it more likely the problem is at?
> 
> Impossible to say without more information.  My inclination is to think
> it's probably on the vendor's end, especially if you're using a recent
> version of GnuPG.  There are a lot of PGP 5.0 and 6.5.8 installations
> out there, and both of them substantially predate the OpenPGP standard
> which GnuPG conforms to.
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
> 



More information about the Gnupg-users mailing list