Around 23:43 on Sep 27, 2002, [EMAIL PROTECTED] said:

# Vjekoslav, can you tell me what the correct method of handling
# whitespace in base64-encoded data is?  The closest thing that I found to
# a RFC on that is
# <http://www.zvon.org/tmRFC/RFC3156/Output/chapter3.html> -- it
# recommends stripping trailing whitespace.  Is this what Apache's
# implementation should be doing?  Or should it collapse all lines of
# base64-encoded data together, then decode that?

        Sorry for jumping in, but I've got a couple comments here.

        Base64 is specified in RFC 2045, which states the following:

   The encoded output stream must be represented in lines of no more
   than 76 characters each.  All line breaks or other characters not
   found in Table 1 must be ignored by decoding software.  In base64
   data, characters other than those in Table 1, line breaks, and other
   white space probably indicate a transmission error, about which a
   warning message or even a message rejection might be appropriate
   under some circumstances.

        Technically speaking, the encoder was not base64 compliant (by
this spec) as it didn't break the lines at 76 characters, nor did it
ignore other characters.

--
SPY                      My girlfriend asked me which one I like better.
pub  1024/3CAE01D5 1994/11/03 Dustin Sallings <[EMAIL PROTECTED]>
|    Key fingerprint =  87 02 57 08 02 D0 DA D6  C8 0F 3E 65 51 98 D8 BE
L_______________________ I hope the answer won't upset her. ____________

Reply via email to