base64

Implements Base 64 encoding based on RFC 4648 ยง4 with Base64Encoding. Includes padding by default.

import { base64 } from "oslo/encoding";

const encoded = base64.encode(message);
const decoded = base64.decodeIgnorePadding(encoded);