gh-146192: Add base32 support to binascii by kangtastic · Pull Request #146193 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions Doc/library/binascii.rst
10 changes: 10 additions & 0 deletions Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,12 @@ binascii
* Added the *ignorechars* parameter in :func:`~binascii.a2b_base64`.
(Contributed by Serhiy Storchaka in :gh:`144001`.)

* Added functions for Base32 encoding:

- :func:`~binascii.b2a_base32` and :func:`~binascii.a2b_base32`

(Contributed by James Seo in :gh:`146192`.)


calendar
--------
Expand Down Expand Up @@ -1279,6 +1285,10 @@ base64 & binascii
two orders of magnitude less memory.
(Contributed by James Seo and Serhiy Storchaka in :gh:`101178`.)

* Implementation for Base32 has been rewritten in C.
Encoding and decoding is now two orders of magnitude faster.
(Contributed by James Seo in :gh:`146192`)


csv
---
Expand Down
96 changes: 12 additions & 84 deletions Lib/base64.py
Loading
Loading