Skip to main content

Mojo package

base64

Binary data encoding: base64 and base16 encode/decode functions.

The base64 package provides functions for encoding and decoding binary data using Base64 and Base16 (hexadecimal) encoding schemes. Base64 encoding converts binary data into ASCII text for transmission over text-based protocols, while Base16 provides a simpler hexadecimal representation. These encodings are essential for data interchange, embedding binary data in text formats, and ensuring data integrity across different systems.

Use this package for encoding binary data in JSON or XML, transmitting binary data over text protocols (HTTP, email), embedding images or files in text formats, or converting between binary and text representations while preserving data integrity.

Modules

  • base64: Provides functions for base64 encoding strings.

Was this page helpful?