[whatwg] Specs for window.atob() and window.btoa()

On 06/02/2011, at 07:56, Joshua Bell wrote:
> On Sat, Feb 5, 2011 at 6:37 PM, Joshua Cranmer <Pidgeot18 at verizon.net>wrote:
>> On 02/05/2011 08:29 PM, Jonas Sicking wrote:
>> 
>>> So my first question is, can someone give examples of sources of
>>> base64 data which contains whitespace?
>>> 
>> The best guess I have is base64-encoding MIME parts, which would be
>> hardwrapped every 70-80 characters or so.
> 
> 
> RFC 3548 "The Base16, Base32, and Base64 Data Encodings" Section 2.1
> discusses line feeds in encoded data, calling out the MIME line length
> limit. For example, Perl's MIME::Base64 has an encode_base64() API that by
> default inserts newlines after 76 characters. (An optional argument allows
> this behavior to be overridden.)

$ openssl enc -base64 ... inserts newlines too.
-- 
Jorge.

Received on Sunday, 6 February 2011 01:40:53 UTC