[issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4

Dmitry report at bugs.python.org
Mon Jun 4 18:45:21 EDT 2018


Dmitry <dniq at dniq-online.com> added the comment:

Ideally there needs to be an option to ignore non-fatal errors. Indeed, pretty much any string should be base64-decodeable. Take a look at Perl's MIME::Base64 - it can decode pretty much any random string (so long as it only contains valid base64 characters).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33770>
_______________________________________


More information about the Python-bugs-list mailing list