Base64 encode a string of bytes or text. The resulting bytes are safe to use in URLs.
string (Union[str, bytes]) –
bytes
Base64 decode a URL-safe string of bytes or text. The result is bytes.