Skip to main content

Module base64

Module base64 

Source
Expand description

Base64 (RFC 4648, standard alphabet with padding), as used to embed images in HTML and SVG documents: encoding, and decoding.

Enums§

Base64Error
Why text is not valid base64.

Functions§

decode
The bytes of base64 text (standard alphabet, with padding). Line breaks (\n, \r) are skipped, as in encode_lines’s output.
encode
data in base64 on one line.
encode_lines
data in base64 in lines of 76 characters, each ending with a newline (Python’s base64.encodebytes, MIME style).