[New-bugs-announce] [issue16995] Add Base32 support for RFC4648 "Extended Hex" alphabet (patch attached)

Matthäus Wander report at bugs.python.org
Fri Jan 18 19:21:19 CET 2013


New submission from Matthäus Wander:

RFC4648 specifies two different alphabets for Base32: 1) the common one already used in RFC3548 and implemented in Python, and 2) an "Extended Hex" alphabet which is used by e.g. DNSSEC NSEC3 but not yet implemented in Python.

The attached patches add the "Extended Hex" alphabet to Python 2.7 and 3 via an optional parameter 'base32hex=False'. Default behavior is not changed.

patch Lib/base64.py < py27_base64.patch
patch Lib/test/test_base64.py < py27_test_base64.patch

----------
components: Library (Lib)
files: base32hex.tar.gz
messages: 180206
nosy: matthaeus.wander
priority: normal
severity: normal
status: open
title: Add Base32 support for RFC4648 "Extended Hex" alphabet (patch attached)
type: enhancement
versions: Python 2.7, Python 3.5
Added file: http://bugs.python.org/file28771/base32hex.tar.gz

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16995>
_______________________________________


More information about the New-bugs-announce mailing list