Encodes a string to URL-safe base64.
Converts the input to UTF-8 bytes, applies standard base64 encoding, then substitutes + / / with - / _ and strips the trailing = padding.
+
/
-
_
=
The string to encode
The URL-safe base64 representation of plain
plain
decodeBase64
Encodes a string to URL-safe base64.
Converts the input to UTF-8 bytes, applies standard base64 encoding, then substitutes
+//with-/_and strips the trailing=padding.