base64_encode
Base64 encode a string of bytes or text. The resulting bytes are safe to use in URLs.
def base64_encode(string): ...
Base64 encode a string of bytes or text. The resulting bytes are safe to use in URLs.
Parameters
| Name | Type | Description |
|---|---|---|
| string | `str | bytes` |
Returns
| Type | Description |
|---|---|
bytes | The URL-safe Base64 encoded bytes with trailing padding characters removed. |