PyDocs

Nav

Internet Data Handling

a2b_base64

binascii

function
  • a2b_base64(string, /, *, padded=True, alphabet=BASE64_ALPHABET, strict_mode=False, canonical=False)
  • a2b_base64(string, /, *, ignorechars, padded=True, alphabet=BASE64_ALPHABET, strict_mode=True, canonical=False)
Decode a line of base64 data.

strict_mode
  When set to true, bytes that are not part of the base64 standard are
  not allowed.  The same applies to excess data after padding (= / ==).
  Set to True by default if ignorechars is specified, False otherwise.
padded
  When set to false, padding in input is not required.
ignorechars
  A byte string containing characters to ignore from the input when
  strict_mode is true.
canonical
  When set to true, reject non-zero padding bits per RFC 4648 section 3.5.
Changed in 3.11, 3.15
  • 3.11: Added the strict_mode parameter.
  • 3.15: Added the alphabet, canonical, ignorechars, and padded parameters.
0 Examples
No examples for binascii/a2b_base64.
See Also
No see-alsos for binascii/a2b_base64
0 Notes
No notes for a2b_base64