Functions -
encoding
decodeBase64Url | Decodes the Base64 URL encoded |
decodeUriComponent | Decodes the given URI component. |
encodeBase64Url | Returns the Base64 URL encoded |
encodeUriComponent | Encodes the given URI component. |
Decodes the Base64 URL encoded string
into a byte array.
Parameters
- input string
-
Value to be decoded
-
Return Type
(byte | Error) Decoded output or
Error
if input is not a valid Base64 URL encoded value
Decodes the given URI component.
Parameters
- uriComponent string
-
URI component to be decoded
- charset string
-
Character set to be used in decoding the URI
-
Return Type
(string | Error) The
string
value of the decoded URI component or anError
that occurred during decoding
Returns the Base64 URL encoded string
value of the given byte array.
Parameters
- input byte
-
Value to be encoded
-
Return Type
(string) Encoded output
Encodes the given URI component.
Parameters
- uriComponent string
-
URI component to be encoded
- charset string
-
Character set to be used in encoding the URI
-
Return Type
(string | Error) The
string
value of the encoded URI component or anError
that occurred during encoding