Skip to main content
Module

std/encoding/base32.ts>encodeBase32

The Deno Standard Library
Go to Latest
function encodeBase32
import { encodeBase32 } from "https://deno.land/std@0.223.0/encoding/base32.ts";

Converts data into a base32-encoded string.

Examples

Example 1

import { encodeBase32 } from "https://deno.land/std@0.223.0/encoding/base32.ts";

encodeBase32("6c60c0"); // "NRQMA==="

Parameters

data: ArrayBuffer | Uint8Array | string

The data to encode.

Returns

string

The base32-encoded string.