Functions -
encoding
byteArrayToString | Converts given byte array to a string. |
decodeBase64 | Decode Base64 encoded |
decodeBase64Url | Decode Base64 URL encoded |
decodeHex | Decode Hex encoded |
encodeBase64 | Returns the Base64 encoded |
encodeBase64Url | Returns the Base64 URL encoded |
encodeHex | Returns the Hex encoded |
Converts given byte array to a string.
Parameters
- content byte[]
-
Byte array content to be converted
- encoding string - utf-8
-
Encoding to used in byte array conversion to string
-
Return Type
(string) String representation of the given byte array
Decode Base64 encoded string
into byte array.
Parameters
- input string
-
Value to be decoded
-
Return Type
(byte[] | EncodingError) Decoded output or
EncodingError
if input is not a valid Base64 value
Decode Base64 URL encoded string
into byte array.
Parameters
- input string
-
Value to be decoded
-
Return Type
(byte[] | EncodingError) Decoded output or
EncodingError
if input is not a valid Base64 URL encoded value
Decode Hex encoded string
into byte array.
Parameters
- input string
-
Value to be decoded
-
Return Type
(byte[] | EncodingError) Decoded output or
EncodingError
if input is not a valid Hex value
Returns the Base64 encoded string
value of the given byte array.
Parameters
- input byte[]
-
Value to be encoded
-
Return Type
(string) Encoded output