[Zope-dev] Incorrect Padding?

Chris Withers chrisw@nipltd.com
Mon, 24 Jul 2000 19:49:34 +0100


Steve Alexander wrote:
> Martijn Pieters wrote:
> >
> > Oops. You took out the strip. But IIRC, base64 does a strip as well.
> 
> So it does!
> 
> >>> from base64 import *
> >>> s = encodestring('foo')
> >>> decodestring(s)
> 'foo'
> >>> decodestring(s+' ')
> 'foo'
> >>> decodestring(' '+s)
> 'foo'

So what was causing the original error then?

Chris