Skip to content

gh-73613: Support Base32 and Base64 without padding#147974

Open
serhiy-storchaka wants to merge 2 commits intopython:mainfrom
serhiy-storchaka:base64-base32-padded
Open

gh-73613: Support Base32 and Base64 without padding#147974
serhiy-storchaka wants to merge 2 commits intopython:mainfrom
serhiy-storchaka:base64-base32-padded

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Apr 1, 2026

Add the padded parameter in functions related to Base32 and Base64 codecs in the binascii and base64 modules. In the encoding functions it controls whether the pad character can be added in the output, in the decoding functions it controls whether padding is required in input.

Padding of input no longer required in base64.urlsafe_b64decode() by default.


📚 Documentation preview 📚: https://cpython-previews--147974.org.readthedocs.build/

Add the padded parameter in functions related to Base32 and Base64 codecs
in the binascii and base64 modules.  In the encoding functions it controls
whether the pad character can be added in the output, in the decoding
functions it controls whether padding is required in input.

Padding of input no longer required in base64.urlsafe_b64decode() by default.
@StanFromIreland
Copy link
Copy Markdown
Member

I noticed the https://github.com/python/cpython/actions/runs/23856718203/job/69552191340?pr=147974 failure, looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants