the encoded string
one of the supported encoding specifiers. Default is
base64
, and padding is always stripped from base64 encoded output.
decoded bytes, truncated if the input does not properly match the encoding format
Generated using TypeDoc
Decodes cryptographic bytes (keys, signatures) using the given encoding. Note that this function doesn't check that the input is actually valid, but will truncate the output to only the valid prefix of input.