Base64 encode a string of bytes or text. The resulting bytes are safe to use in URLs.
string (str | bytes)
bytes
Base64 decode a URL-safe string of bytes or text. The result is bytes.
base64_encode()
base64_decode()