ID EN
Base64

b64encode

Python 3.11

Encode the bytes-like object s using Base64 and return the encoded bytes.

Syntax

PYTHON
base64.b64encode(s, altchars=None)

See Also

bytes-like object bytes bytes-like object ValueError TypeError bytes-like object