Encodes UTF-8 text to base64, or decodes base64 back to text. Supports the standard and URL-safe alphabets.
action is encode (default) or decode. Set url_safe to use the URL/filename-safe alphabet. Missing decode padding is tolerated. Decoding requires the result to be valid UTF-8 text. Computed locally.
Text to encode, or base64 string to decode.
Whether to encode or decode. Defaults to encode.
Use the URL/filename-safe base64 alphabet. Defaults to false.