base64

Base64 encode and decode strings.

Import

import base64

Functions

base64.encode(data: str) -> str

Encode a string to base64.

base64.decode(data: str) -> str

Decode a base64 string back to its original bytes.

Examples

scratch.xs