Function
base64.b16decode

Signature

b16decode(s, casefold=False)

Documentation String

Decode a Base16 encoded string.

s is the string to decode. Optional casefold is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is False.

The decoded string is returned. A TypeError is raised if s were incorrectly padded or if there are non-alphabet characters present in the string.