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 <rep...@bugs.python.org>
<http://bugs.python.org/issue16995>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to