Encode a string as URL-safe Base64.
Text containing characters above U+00FF is encoded as the UTF-8 byte order mark followed by its UTF-8 bytes, so
it can be restored by the matching decode function. All other text is encoded as one byte per character.
Parameters
value: string
The string value to encode
Returns string
The URL-safe Base64 encoded string (replaces + with -, / with _, removes padding)
Encode a string as URL-safe Base64. Text containing characters above
U+00FFis encoded as the UTF-8 byte order mark followed by its UTF-8 bytes, so it can be restored by the matching decode function. All other text is encoded as one byte per character.