File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env python3
22
3- """Base16, Base32, Base64 (RFC 3548 ), Base85 and Ascii85 data encodings"""
3+ """Base16, Base32, Base64 (RFC 4648 ), Base85 and Ascii85 data encodings"""
44
55# Modified 04-Oct-1995 by Jack Jansen to use binascii module
66# Modified 30-Dec-2003 by Barry Warsaw to add full RFC 3548 support
@@ -150,7 +150,7 @@ def urlsafe_b64decode(s):
150150characters present in the input.
151151'''
152152_B32_DECODE_MAP01_DOCSTRING = '''
153- RFC 3548 allows for optional mapping of the digit 0 (zero) to the
153+ RFC 4648 allows for optional mapping of the digit 0 (zero) to the
154154letter O (oh), and for optional mapping of the digit 1 (one) to
155155either the letter I (eye) or letter L (el). The optional argument
156156map01 when not None, specifies which letter the digit 1 should be
@@ -264,7 +264,7 @@ def b32hexdecode(s, casefold=False):
264264 extra_args = '' )
265265
266266
267- # RFC 3548 , Base 16 Alphabet specifies uppercase, but hexlify() returns
267+ # RFC 4648 , Base 16 Alphabet specifies uppercase, but hexlify() returns
268268# lowercase. The RFC also recommends against accepting input case
269269# insensitively.
270270def b16encode (s ):
You can’t perform that action at this time.
0 commit comments