Skip to main content

urlsafe_base64_decode

Decode a base64 encoded string. Add back any trailing equal signs that might have been stripped.

def urlsafe_base64_decode(
s: string
) - > bytes

Decode a base64 encoded string. Add back any trailing equal signs that might have been stripped.

Parameters

NameTypeDescription
sstringThe URL-safe base64 encoded string to be decoded, which may or may not include padding

Returns

TypeDescription
bytesThe decoded binary data resulting from the base64 string