PyDocs

Nav

Internet Data Handling

urlsafe_b64decode

base64

function (source) Deprecated 3.15
  • urlsafe_b64decode(s, *, padded=False)
Deprecated since 3.15. Accepting the + and / characters is now deprecated.
Decode bytes using the URL- and filesystem-safe Base64 alphabet.

Argument s is a bytes-like object or ASCII string to decode.  The result
is returned as a bytes object.  A binascii.Error is raised if the input
is incorrectly padded.  Characters that are not in the URL-safe base-64
alphabet, and are not a plus '+' or slash '/', are discarded prior to the
padding check.

If padded is false, padding in input is not required.

The alphabet uses '-' instead of '+' and '_' instead of '/'.
Changed in 3.15
  • 3.15: Added the padded parameter. Padding of input is no longer required by default.
0 Examples
No examples for base64/urlsafe_b64decode.
See Also
No see-alsos for base64/urlsafe_b64decode
0 Notes
No notes for urlsafe_b64decode