IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.2.0
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

base64

Provides functions for base64 encoding strings.

You can import these APIs from the base64 package. For example:

from std.base64 import b64encode

Functions​

  • ​b16decode: Performs base16 decoding on the input string.
  • ​b16encode: Performs base16 encoding on the input string slice.
  • ​b64decode: Performs base64 decoding on the input string.
  • ​b64encode: Performs base64 encoding on the input string.