base64url

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

import { base64url } from "oslo/encoding";

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