On Fri, Jun 10, 2005 at 01:13:35PM -0500, Jeff Epler wrote:
> > Is this a feature? I do see b32encode padding the string with NULs first.
This is bug #1170331, which was fixed when I applied patch #1171487
earlier this week.
> This also seems suspect:
> >>> base64.b32encode("\0a")
> 'ABQQ'
>
On Tue, Jun 07, 2005 at 08:23:18PM -0700, Pavel Pergamenshchik wrote:
> Hi.
> Is this a feature? I do see b32encode padding the string with NULs first.
>
> >>> b32decode(b32encode('\x00'))
> Traceback (most recent call last):
> File "", line 1, in ?
> File "/usr/lib/python2.4/base64.py", line
Hi.
Is this a feature? I do see b32encode padding the string with NULs first.
>>> b32decode(b32encode('\x00'))
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/lib/python2.4/base64.py", line 228, in b32decode
last = binascii.unhexlify(hex(acc)[2:-1])
TypeError: Odd-lengt