base64urlDecode

Decodes a Base64URL-encoded string to a byte array.

Accepts input with or without padding. Uses URL-safe alphabet: - instead of +, _ instead of /.

Return

Decoded byte array

Parameters

encoded

The Base64URL-encoded string (with or without padding)

Throws

if the input is not valid Base64URL