[Zope-dev] Incorrect Padding?

Steve Alexander steve@cat-box.net
Mon, 24 Jul 2000 19:46:22 +0100


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'

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net