Skip to content

zbase32 should have no padding #3

Description

@internalG

anybase32.decode(b'y', anybase32.ZBASE32)
Traceback (most recent call last):
File "", line 1, in
File "/Users/suwei/Documents/python3env/scrapy/lib/python3.6/site-packages/anybase32/init.py", line 102, in decode
return base64.b32decode(encoded)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/base64.py", line 246, in b32decode
raise binascii.Error('Incorrect padding')
binascii.Error: Incorrect padding

According to the paper https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt no padding is a feature for zbase32.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions