Skip to main content

b64_decode

Decodes a URL-safe base64-encoded string after appending the necessary padding characters to ensure the input length is a multiple of four.

def b64_decode(
s: string
) - > bytes

Decodes a Base64-encoded string into its original byte representation, automatically applying necessary padding for URL-safe processing.

Parameters

NameTypeDescription
sstringThe Base64-encoded string or byte string to be decoded, which may lack standard padding.

Returns

TypeDescription
bytesThe decoded byte sequence derived from the URL-safe Base64 input.